summaryrefslogtreecommitdiff
path: root/tools/bootstrp/prj.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-21 23:04:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-22 09:25:35 +0100
commite370ee9a887417c93b455562cf60fc375d9725ea (patch)
tree691a29e2974c4e83dc69e4f2743c32de7c04e741 /tools/bootstrp/prj.cxx
parent93d8410023f659c324d1249f6500134b51edf242 (diff)
ditch some old-style strings
Diffstat (limited to 'tools/bootstrp/prj.cxx')
-rw-r--r--tools/bootstrp/prj.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index 00be3bedddee..b44592c562ec 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -53,26 +53,26 @@ SimpleConfig::~SimpleConfig()
aFileStream.Close ();
}
-ByteString SimpleConfig::GetNext()
+rtl::OString SimpleConfig::getNext()
{
- if ( aStringBuffer =="" )
+ if (aStringBuffer == "")
while ((aStringBuffer = GetNextLine()) == "\t") ; //solange bis != "\t"
- if ( aStringBuffer =="" )
- return ByteString();
+ if ( aStringBuffer == "" )
+ return rtl::OString();
- ByteString aString = aStringBuffer.GetToken(0,'\t');
- aStringBuffer.Erase(0, aString.Len()+1);
+ rtl::OString aString = aStringBuffer.GetToken(0,'\t');
+ aStringBuffer.Erase(0, aString.getLength()+1);
aStringBuffer.EraseLeadingChars( '\t' );
return aString;
}
-ByteString SimpleConfig::GetNextLine()
+rtl::OString SimpleConfig::GetNextLine()
{
aFileStream.ReadLine ( aTmpStr );
if ( aTmpStr.Search( "#" ) == 0 )
- return "\t";
+ return rtl::OString('\t');
aTmpStr = aTmpStr.EraseLeadingChars();
aTmpStr = aTmpStr.EraseTrailingChars();
while ( aTmpStr.SearchAndReplace(ByteString(' '),ByteString('\t') ) != STRING_NOTFOUND ) ;