diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-01-12 16:14:41 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-01-12 16:14:41 +0100 |
commit | a0602756a7bd259f6ee4e62161afe00298ba1d6c (patch) | |
tree | 8b1fdc48610d073122e449f46a42736acb3c9652 /l10ntools/layout | |
parent | 0f029bd13462f28ae38bd1371c7c7b42dd992bdc (diff) |
removetooltypes01: #i112600# Exchange misleading sal_uIntPtr with sal_uLong in l10ntools
Diffstat (limited to 'l10ntools/layout')
-rw-r--r-- | l10ntools/layout/layoutparse.cxx | 4 | ||||
-rw-r--r-- | l10ntools/layout/tralay.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/l10ntools/layout/layoutparse.cxx b/l10ntools/layout/layoutparse.cxx index 692571b1166d..f24cc432bf41 100644 --- a/l10ntools/layout/layoutparse.cxx +++ b/l10ntools/layout/layoutparse.cxx @@ -44,7 +44,7 @@ LayoutXMLFile::SearchL10NElements( XMLParentNode* pCur, int ) /* Recurse int children, SearchL10NElements does not do that for us. */ if ( XMLChildNodeList* lst = pCur->GetChildList() ) - for ( sal_uIntPtr i = 0; i < lst->Count(); i++ ) + for ( sal_uLong i = 0; i < lst->Count(); i++ ) if ( lst->GetObject( i )->GetNodeType() == XML_NODE_TYPE_ELEMENT ) HandleElement( ( XMLElement* )lst->GetObject( i ) ); else if ( lst->GetObject( i )->GetNodeType() == XML_NODE_TYPE_COMMENT ) @@ -56,7 +56,7 @@ interestingAttributes( XMLAttributeList* lst ) { std::vector<XMLAttribute*> interesting; if ( lst ) - for ( sal_uIntPtr i = 0; i < lst->Count(); i++ ) + for ( sal_uLong i = 0; i < lst->Count(); i++ ) if ( lst->GetObject( i )->Equals( STRING( "id" ) ) ) interesting.insert( interesting.begin(), lst->GetObject( i ) ); else if ( ! BSTRING( *lst->GetObject( i ) ).CompareTo( "_", 1 ) ) diff --git a/l10ntools/layout/tralay.cxx b/l10ntools/layout/tralay.cxx index 906173998b1c..9e6fa32bb094 100644 --- a/l10ntools/layout/tralay.cxx +++ b/l10ntools/layout/tralay.cxx @@ -163,7 +163,7 @@ void TranslateLayout::ParseCommandLine() static XMLAttribute* findAttribute( XMLAttributeList* lst, String const& name ) { - for ( sal_uIntPtr i = 0; i < lst->Count(); i++ ) + for ( sal_uLong i = 0; i < lst->Count(); i++ ) if ( lst->GetObject( i )->Equals( name ) ) return lst->GetObject( i ); return 0; @@ -243,7 +243,7 @@ static void insertMarker( XMLParentNode *p, ByteString const& file ) if ( XMLChildNodeList* lst = p->GetChildList() ) if ( lst->Count() ) { - sal_uIntPtr i = 1; + sal_uLong i = 1; // Skip newline, if possible. if ( lst->Count() > 1 && lst->GetObject( 2 )->GetNodeType() == XML_NODE_TYPE_DEFAULT ) |