diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 15:28:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 07:57:37 +0200 |
commit | 88eda6e3f932c97e998343829acbc444d03f5167 (patch) | |
tree | d4cd29bcfe615cbfb6451759ee22dd5d1f3ca0c5 | |
parent | 5055b4ad7be50e905ebc0c032fa9f5cdc6316fc1 (diff) |
loplugin:unuseddefaultparam in l10ntools
Change-Id: I688ed796c054002ed05a1a2faa04c6f7a3123ef0
-rw-r--r-- | l10ntools/inc/xmlparse.hxx | 2 | ||||
-rw-r--r-- | l10ntools/inc/xrmmerge.hxx | 2 | ||||
-rw-r--r-- | l10ntools/source/xmlparse.cxx | 12 |
3 files changed, 4 insertions, 12 deletions
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx index 94a6188df8b2..29397bf85f1a 100644 --- a/l10ntools/inc/xmlparse.hxx +++ b/l10ntools/inc/xmlparse.hxx @@ -156,7 +156,7 @@ public: void Print( XMLNode *pCur = nullptr, sal_uInt16 nLevel = 0 ); void SearchL10NElements( XMLChildNode *pCur, int pos = 0 ); - void Extract( XMLFile *pCur = nullptr ); + void Extract(); XMLHashMap* GetStrings(){ return m_pXMLStrings.get(); } void Write( OString const &rFilename ); diff --git a/l10ntools/inc/xrmmerge.hxx b/l10ntools/inc/xrmmerge.hxx index 8b421847bb43..45b3e2f6efe5 100644 --- a/l10ntools/inc/xrmmerge.hxx +++ b/l10ntools/inc/xrmmerge.hxx @@ -63,7 +63,7 @@ public: void Execute( int nToken, char * pToken ); - void SetError( bool bErr = true ) { bError = bErr; } + void SetError() { bError = true; } bool GetError() { return bError; } }; diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index 6946f0792c6b..714ef1d64580 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -324,18 +324,10 @@ XMLFile::XMLFile( const OString &rFileName ) // the file name, empty if created m_aNodes_localize.insert( TagMap::value_type(OString("link") , sal_True) ); } -void XMLFile::Extract( XMLFile *pCur ) +void XMLFile::Extract() { m_pXMLStrings.reset( new XMLHashMap() ); - if ( !pCur ) - SearchL10NElements( this ); - else - { - if( pCur->GetNodeType() == XML_NODE_TYPE_FILE ) - { - SearchL10NElements(pCur); - } - } + SearchL10NElements( this ); } void XMLFile::InsertL10NElement( XMLElement* pElement ) |