summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-04-23 23:20:53 +0200
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-04-23 23:52:54 +0200
commitf167f037351d953e324eb97d6055064efa2d7f59 (patch)
treebbb6bb3de3c0162b530d80e3a5d09f3819b2d988
parent85486f711e03b8418a6b8fb2eeb2b74b2e90581a (diff)
L10ntools: remove some lang vectors from parsing
Change-Id: I3b9ef50d8e0c1e99d5b535d95a5add90a1cbaf03
-rw-r--r--l10ntools/inc/cfgmerge.hxx3
-rw-r--r--l10ntools/inc/xrmmerge.hxx2
-rw-r--r--l10ntools/source/cfgmerge.cxx10
3 files changed, 1 insertions, 14 deletions
diff --git a/l10ntools/inc/cfgmerge.hxx b/l10ntools/inc/cfgmerge.hxx
index 00838dea6c71..9710008707aa 100644
--- a/l10ntools/inc/cfgmerge.hxx
+++ b/l10ntools/inc/cfgmerge.hxx
@@ -122,7 +122,6 @@ protected:
private:
int ExecuteAnalyzedToken( int nToken, char *pToken );
- std::vector<OString> aLanguages;
void AddText(
OString &rText,
const OString &rIsoLang,
@@ -145,8 +144,6 @@ class CfgExport : public CfgParser
{
private:
OString sPath;
- std::vector<OString> aLanguages;
-
PoOfstream pOutputStream;
protected:
diff --git a/l10ntools/inc/xrmmerge.hxx b/l10ntools/inc/xrmmerge.hxx
index 9e5fbae65d07..a2a8906a1b17 100644
--- a/l10ntools/inc/xrmmerge.hxx
+++ b/l10ntools/inc/xrmmerge.hxx
@@ -38,7 +38,6 @@ private:
OString sCurrentCloseTag;
OString sCurrentText;
protected:
- std::vector<OString> aLanguages;
OString GetAttribute( const OString &rToken, const OString &rAttribute );
void Error( const OString &rError );
@@ -113,6 +112,7 @@ private:
OString sFilename;
ResData *pResData;
std::ofstream pOutputStream;
+ std::vector<OString> aLanguages;
protected:
void WorkOnDesc(
diff --git a/l10ntools/source/cfgmerge.cxx b/l10ntools/source/cfgmerge.cxx
index e5923ab153c6..b2f47b27274c 100644
--- a/l10ntools/source/cfgmerge.cxx
+++ b/l10ntools/source/cfgmerge.cxx
@@ -221,11 +221,6 @@ int CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken )
case CFG_TEXT_START: {
if ( sCurrentResTyp != sTokenName ) {
WorkOnResourceEnd();
- OString sCur;
- for( unsigned int i = 0; i < aLanguages.size(); ++i ){
- sCur = aLanguages[ i ];
- pStackData->sText[ sCur ] = OString();
- }
}
sCurrentResTyp = sTokenName;
@@ -257,11 +252,6 @@ int CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken )
else if ( sTokenName == "label" ) {
if ( sCurrentResTyp != sTokenName ) {
WorkOnResourceEnd();
- OString sCur;
- for( unsigned int i = 0; i < aLanguages.size(); ++i ){
- sCur = aLanguages[ i ];
- pStackData->sText[ sCur ] = OString();
- }
}
sCurrentResTyp = sTokenName;
}