summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 12:43:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 13:02:24 +0200
commit27be81819064cb96d98c881f45d6e3fbdf7a33d0 (patch)
treef182a2979a2c0df28f21c1fa0634d56bc772500f /l10ntools
parentf7ae11ce60c0d1d63e09041e621f9e95bb952847 (diff)
loplugin:singlevalfields in l10ntools..sax
and ignore URE headers in the plugin Change-Id: I939df744c1173cf0f67d515f6c3fb4ac4cb25588
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/export.hxx1
-rw-r--r--l10ntools/source/export.cxx9
2 files changed, 0 insertions, 10 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 1273efdcd92d..3c59d46d0198 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -128,7 +128,6 @@ private:
bool bNextMustBeDefineEOL; ///< define but no \ at lineend
std::size_t nLevel; // res. recursive? how deep?
ExportListType nList; ///< cur. res. is List
- std::size_t nListIndex;
std::size_t nListLevel;
bool bMergeMode;
OString sMergeSrc;
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index fd7fe6492e91..bb1aeab116ae 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -197,7 +197,6 @@ Export::Export(const OString &rOutput)
bNextMustBeDefineEOL( false ),
nLevel( 0 ),
nList( ExportListType::NONE ),
- nListIndex( 0 ),
nListLevel( 0 ),
bMergeMode( false ),
bError( false ),
@@ -221,7 +220,6 @@ Export::Export(
bNextMustBeDefineEOL( false ),
nLevel( 0 ),
nList( ExportListType::NONE ),
- nListIndex( 0 ),
nListLevel( 0 ),
bMergeMode( true ),
sMergeSrc( rMergeSource ),
@@ -248,7 +246,6 @@ void Export::Init()
bNextMustBeDefineEOL = false;
nLevel = 0;
nList = ExportListType::NONE;
- nListIndex = 0;
for ( size_t i = 0, n = aResStack.size(); i < n; ++i )
delete aResStack[ i ];
aResStack.clear();
@@ -510,13 +507,11 @@ void Export::Execute( int nToken, const char * pToken )
else if (sKey =="STRINGLIST")
{
nList = ExportListType::String;
- nListIndex = 0;
nListLevel = 1;
}
else if (sKey == "FILTERLIST")
{
nList = ExportListType::Filter;
- nListIndex = 0;
nListLevel = 1;
}
if (sToken.indexOf( '{' ) != -1
@@ -557,7 +552,6 @@ void Export::Execute( int nToken, const char * pToken )
}
if( nList != ExportListType::NONE )
{
- nListIndex = 0;
nListLevel = 1;
}
}
@@ -851,9 +845,6 @@ void Export::InsertListEntry(const OString &rLine)
if (!pResData)
std::exit(EXIT_FAILURE);
- if( pResData->m_aList.empty() )
- nListIndex = 0;
-
pResData->m_aList.push_back(rLine);
}