summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-13 23:17:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-14 07:36:02 +0000
commit74500c21a462ed6555bcbdc2a68cbc632ac68329 (patch)
tree7189aac0092287448c7924aeb12ed101d9c92428 /tools
parentca48cd4c6061650a407358575369c66df72b767e (diff)
ByteString->rtl::OString
Diffstat (limited to 'tools')
-rw-r--r--tools/bootstrp/cppdep.cxx12
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 )
{