diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-04 09:30:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-04 11:26:09 +0200 |
commit | 469076317d27e545449ea5a5688a468d02558451 (patch) | |
tree | 21bca3de53d7ef299c35d57b2d1267e22f7c9c6b /l10ntools | |
parent | 8237a77245227e434ce8a988aa164a67850281e2 (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')
-rw-r--r-- | l10ntools/inc/xmlparse.hxx | 4 | ||||
-rw-r--r-- | l10ntools/source/xmlparse.cxx | 10 |
2 files changed, 4 insertions, 10 deletions
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx index 037a3843326a..3a057f421c96 100644 --- a/l10ntools/inc/xmlparse.hxx +++ b/l10ntools/inc/xmlparse.hxx @@ -155,7 +155,7 @@ public: virtual ~XMLFile() override; void Print( XMLNode *pCur, sal_uInt16 nLevel = 0 ); - void SearchL10NElements( XMLChildNode *pCur, int pos = 0 ); + void SearchL10NElements( XMLChildNode *pCur ); void Extract(); XMLHashMap* GetStrings(){ return m_pXMLStrings.get(); } @@ -204,7 +204,6 @@ private: std::unique_ptr<XMLAttributeList> m_pAttributes; OString m_sId; OString m_sLanguageId; - int m_nPos; protected: void Print(XMLNode *pCur, OStringBuffer& rBuffer, bool bRootelement) const; @@ -237,7 +236,6 @@ public: void SetId ( OString const & sTheId ) { m_sId = sTheId; } void SetLanguageId ( OString const & sLangId ) { m_sLanguageId = sLangId; } - void SetPos ( int nPos ) { m_nPos = nPos; } }; /** Holds character data 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 ) { |