summaryrefslogtreecommitdiffstats
path: root/idlc/source/fehelper.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2001-05-10 12:07:49 +0000
committerPhilipp Lohmann <pl@openoffice.org>2001-05-10 12:07:49 +0000
commit2f02e0b70843b881756aa2cc68c19e64b1bef777 (patch)
tree0d43e67e6c51b651202019e4d9660d0259a33077 /idlc/source/fehelper.cxx
parentadopted to new bootstrapping (diff)
downloadcore-2f02e0b70843b881756aa2cc68c19e64b1bef777.tar.gz
core-2f02e0b70843b881756aa2cc68c19e64b1bef777.zip
osl string api changes
Diffstat (limited to 'idlc/source/fehelper.cxx')
-rw-r--r--idlc/source/fehelper.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/idlc/source/fehelper.cxx b/idlc/source/fehelper.cxx
index be3a2791d070..3b5d301fa4a5 100644
--- a/idlc/source/fehelper.cxx
+++ b/idlc/source/fehelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fehelper.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jsc $ $Date: 2001-04-11 07:24:23 $
+ * last change: $Author: pl $ $Date: 2001-05-10 13:07:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,9 +84,9 @@ FeDeclarator::~FeDeclarator()
sal_Bool FeDeclarator::checkType(AstDeclaration *type)
{
OString tmp(m_name);
- sal_uInt32 count = 0;
- if ( (count = m_name.getTokenCount(':')) > 0 )
- tmp = m_name.getToken(count-1, ':');
+ sal_Int32 count = m_name.lastIndexOf( ':' );
+ if( count != -1 )
+ tmp = m_name.copy( count+1 );
if (tmp == type->getLocalName())
return sal_False;