[Libreoffice-commits] core.git: l10ntools/inc l10ntools/source

Douglas Mencken dougmencken at gmail.com
Mon Sep 8 00:00:30 PDT 2014


 l10ntools/inc/export.hxx    |    6 ++++--
 l10ntools/source/export.cxx |    6 +++---
 2 files changed, 7 insertions(+), 5 deletions(-)

New commits:
commit 5aeb852efcabdd51545d5d41c92f4bf3cef1d663
Author: Douglas Mencken <dougmencken at gmail.com>
Date:   Sun Sep 7 03:48:53 2014 -0400

    l10ntools-transex3: make pParseQueue field private
    
    Change-Id: Ieefed6e939e12b668a635eb8d7e70def2d52a85d
    Reviewed-on: https://gerrit.libreoffice.org/11315
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 4415e30..2010293 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 6f8c8b8..170d76f 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;
 }
 


More information about the Libreoffice-commits mailing list