diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-13 23:17:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-14 07:36:02 +0000 |
commit | 74500c21a462ed6555bcbdc2a68cbc632ac68329 (patch) | |
tree | 7189aac0092287448c7924aeb12ed101d9c92428 /tools/bootstrp | |
parent | bump libexttextcat to 3.2.0 (diff) | |
download | core-74500c21a462ed6555bcbdc2a68cbc632ac68329.tar.gz core-74500c21a462ed6555bcbdc2a68cbc632ac68329.zip |
ByteString->rtl::OString
Diffstat (limited to 'tools/bootstrp')
-rw-r--r-- | tools/bootstrp/cppdep.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/bootstrp/cppdep.cxx b/tools/bootstrp/cppdep.cxx index 9829ceee5bbe..44e084464560 100644 --- a/tools/bootstrp/cppdep.cxx +++ b/tools/bootstrp/cppdep.cxx @@ -96,18 +96,20 @@ sal_Bool CppDep::Search( ByteString aFileName ) sal_Bool bRet = sal_False; SvFileStream aFile; - ByteString aReadLine; + rtl::OString aReadLine; UniString suFileName(aFileName, osl_getThreadTextEncoding()); aFile.Open( suFileName, STREAM_READ ); while ( aFile.ReadLine( aReadLine )) { - sal_uInt16 nPos = aReadLine.Search( "include" ); - if ( nPos != STRING_NOTFOUND ) + using comphelper::string::indexOfL; + sal_Int32 nPos = indexOfL(aReadLine, + RTL_CONSTASCII_STRINGPARAM("include")); + if ( nPos != -1 ) { #ifdef DEBUG_VERBOSE - fprintf( stderr, "found : %d %s\n", nPos, aReadLine.GetBuffer() ); + fprintf( stderr, "found : %d %s\n", nPos, aReadLine.getStr() ); #endif ByteString aResult = IsIncludeStatement( aReadLine ); #ifdef DEBUG_VERBOSE @@ -127,7 +129,7 @@ sal_Bool CppDep::Search( ByteString aFileName ) bFound = sal_True; } #ifdef DEBUG_VERBOSE - fprintf( stderr, "not in list : %d %s\n", nPos, aReadLine.GetBuffer() ); + fprintf( stderr, "not in list : %d %s\n", nPos, aReadLine.getStr() ); #endif if ( !bFound ) { |