summaryrefslogtreecommitdiff
path: root/l10ntools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-04 09:30:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-04 11:26:09 +0200
commit469076317d27e545449ea5a5688a468d02558451 (patch)
tree21bca3de53d7ef299c35d57b2d1267e22f7c9c6b /l10ntools/source
parent8237a77245227e434ce8a988aa164a67850281e2 (diff)
loplugin:unusedfields l10ntools..rsc
Change-Id: I78785eeab436910c9e8733924a7c43fa998ba36f Reviewed-on: https://gerrit.libreoffice.org/39491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools/source')
-rw-r--r--l10ntools/source/xmlparse.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index ae93b44437f9..c8f670508f20 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -419,7 +419,7 @@ XMLFile& XMLFile::operator=(const XMLFile& rObj)
return *this;
}
-void XMLFile::SearchL10NElements( XMLChildNode *pCur, int nPos )
+void XMLFile::SearchL10NElements( XMLChildNode *pCur )
{
if ( !pCur )
SearchL10NElements( this );
@@ -435,7 +435,7 @@ void XMLFile::SearchL10NElements( XMLChildNode *pCur, int nPos )
{
XMLChildNode* pElement = (*GetChildList())[ i ];
if( pElement->GetNodeType() == XMLNodeType::ELEMENT )
- SearchL10NElements( pElement , i);
+ SearchL10NElements( pElement );
}
}
}
@@ -466,7 +466,6 @@ void XMLFile::SearchL10NElements( XMLChildNode *pCur, int nPos )
}
pElement->SetLanguageId( sLanguage );
pElement->SetId( sTmpStrVal );
- pElement->SetPos( nPos );
}
if ( bInsert && ( m_aNodes_localize.find( sName ) != m_aNodes_localize.end() ) )
@@ -474,7 +473,7 @@ void XMLFile::SearchL10NElements( XMLChildNode *pCur, int nPos )
else if ( bInsert && pElement->GetChildList() )
{
for ( size_t k = 0; k < pElement->GetChildList()->size(); k++ )
- SearchL10NElements( (*pElement->GetChildList())[ k ], k);
+ SearchL10NElements( (*pElement->GetChildList())[ k ] );
}
}
break;
@@ -550,7 +549,6 @@ XMLElement::XMLElement(
, m_sElementName( rName )
, m_sId(OString())
, m_sLanguageId(OString())
- , m_nPos(0)
{
}
@@ -559,7 +557,6 @@ XMLElement::XMLElement(const XMLElement& rObj)
, m_sElementName( rObj.m_sElementName )
, m_sId( rObj.m_sId )
, m_sLanguageId( rObj.m_sLanguageId )
- , m_nPos( rObj.m_nPos )
{
if ( rObj.m_pAttributes )
{
@@ -577,7 +574,6 @@ XMLElement& XMLElement::operator=(const XMLElement& rObj)
m_sElementName = rObj.m_sElementName;
m_sId = rObj.m_sId;
m_sLanguageId = rObj.m_sLanguageId;
- m_nPos = rObj.m_nPos;
if ( m_pAttributes )
{