summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2014-09-07 03:48:53 -0400
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-09-08 02:00:05 -0500
commit5aeb852efcabdd51545d5d41c92f4bf3cef1d663 (patch)
treeaf5ab27162cecd1c4c39e84561aea544046e53af /l10ntools
parent72510082086d66647cd68c76afcc47255bc5da4c (diff)
l10ntools-transex3: make pParseQueue field private
Change-Id: Ieefed6e939e12b668a635eb8d7e70def2d52a85d Reviewed-on: https://gerrit.libreoffice.org/11315 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/export.hxx6
-rw-r--r--l10ntools/source/export.cxx6
2 files changed, 7 insertions, 5 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 4415e30b3e8c..20102930c93c 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -145,6 +145,8 @@ private:
std::vector<OString> aLanguages;
+ ParserQueue* pParseQueue;
+
bool WriteData( ResData *pResData, bool bCreateNew = false ); ///< called before dest. cur ResData
bool WriteExportList( ResData *pResData, ExportList& rExportList, const sal_uInt16 nTyp );
@@ -179,13 +181,13 @@ public:
void Init();
int Execute( int nToken, const char * pToken ); ///< called from lexer
+
void SetError() { bError = true; }
bool GetError() { return bError; }
- ParserQueue* pParseQueue; // public!!
+ ParserQueue* GetParseQueue() { return pParseQueue; }
};
-
// class MergeEntrys
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 6f8c8b828f60..170d76f3f610 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -108,16 +108,16 @@ int Parse( int nTyp, const char *pTokenText ){
global::exporter->Execute( nTyp , pTokenText );
return 1;
}
+
void Close(){
- global::exporter->pParseQueue->Close();
+ global::exporter->GetParseQueue()->Close();
global::exporter.reset();
// avoid nontrivial Export dtor being executed during exit
}
int WorkOnTokenSet( int nTyp, char *pTokenText )
{
-
- global::exporter->pParseQueue->Push( QueueEntry( nTyp , OString(pTokenText) ) );
+ global::exporter->GetParseQueue()->Push( QueueEntry( nTyp , OString(pTokenText) ) );
return 1;
}