[Libreoffice-commits] core.git: l10ntools/inc l10ntools/source
Stephan Bergmann
sbergman at redhat.com
Wed Jun 11 14:48:11 PDT 2014
l10ntools/inc/xmlparse.hxx | 2 +-
l10ntools/source/xmlparse.cxx | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit fb22eb425735b2741c3cb77d9a1700b663acd11b
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jun 11 23:47:11 2014 +0200
Fix XMLFile::SearchL10NElements signature
Change-Id: I34134f75ac5571a635256d349bf5a2f67ef8ef06
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index cabce41..bca92c1 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -155,7 +155,7 @@ public:
virtual ~XMLFile();
void Print( XMLNode *pCur = NULL, sal_uInt16 nLevel = 0 );
- virtual void SearchL10NElements( XMLParentNode *pCur, int pos = 0 );
+ virtual void SearchL10NElements( XMLChildNode *pCur, int pos = 0 );
void Extract( XMLFile *pCur = NULL );
XMLHashMap* GetStrings(){ return m_pXMLStrings; }
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index 1a7559b..0e74383 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -442,7 +442,7 @@ XMLFile& XMLFile::operator=(const XMLFile& rObj)
return *this;
}
-void XMLFile::SearchL10NElements( XMLParentNode *pCur, int nPos )
+void XMLFile::SearchL10NElements( XMLChildNode *pCur, int nPos )
{
bool bInsert = true;
if ( !pCur )
@@ -460,7 +460,7 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur, int nPos )
{
pElement = (*GetChildList())[ i ];
if( pElement->GetNodeType() == XML_NODE_TYPE_ELEMENT )
- SearchL10NElements( (XMLParentNode*) pElement , i);
+ SearchL10NElements( pElement , i);
}
}
}
@@ -503,7 +503,7 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur, int nPos )
else if ( bInsert && pElement->GetChildList() )
{
for ( size_t k = 0; k < pElement->GetChildList()->size(); k++ )
- SearchL10NElements( (XMLParentNode*)(*pElement->GetChildList())[ k ], k);
+ SearchL10NElements( (*pElement->GetChildList())[ k ], k);
}
}
break;
More information about the Libreoffice-commits
mailing list