Kaydet (Commit) fb22eb42 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix XMLFile::SearchL10NElements signature

Change-Id: I34134f75ac5571a635256d349bf5a2f67ef8ef06
üst 7e193980
...@@ -155,7 +155,7 @@ public: ...@@ -155,7 +155,7 @@ public:
virtual ~XMLFile(); virtual ~XMLFile();
void Print( XMLNode *pCur = NULL, sal_uInt16 nLevel = 0 ); 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 ); void Extract( XMLFile *pCur = NULL );
XMLHashMap* GetStrings(){ return m_pXMLStrings; } XMLHashMap* GetStrings(){ return m_pXMLStrings; }
......
...@@ -442,7 +442,7 @@ XMLFile& XMLFile::operator=(const XMLFile& rObj) ...@@ -442,7 +442,7 @@ XMLFile& XMLFile::operator=(const XMLFile& rObj)
return *this; return *this;
} }
void XMLFile::SearchL10NElements( XMLParentNode *pCur, int nPos ) void XMLFile::SearchL10NElements( XMLChildNode *pCur, int nPos )
{ {
bool bInsert = true; bool bInsert = true;
if ( !pCur ) if ( !pCur )
...@@ -460,7 +460,7 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur, int nPos ) ...@@ -460,7 +460,7 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur, int nPos )
{ {
pElement = (*GetChildList())[ i ]; pElement = (*GetChildList())[ i ];
if( pElement->GetNodeType() == XML_NODE_TYPE_ELEMENT ) 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 ) ...@@ -503,7 +503,7 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur, int nPos )
else if ( bInsert && pElement->GetChildList() ) else if ( bInsert && pElement->GetChildList() )
{ {
for ( size_t k = 0; k < pElement->GetChildList()->size(); k++ ) for ( size_t k = 0; k < pElement->GetChildList()->size(); k++ )
SearchL10NElements( (XMLParentNode*)(*pElement->GetChildList())[ k ], k); SearchL10NElements( (*pElement->GetChildList())[ k ], k);
} }
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment