summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-18 21:41:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-19 09:59:22 +0100
commite3f289d980862bdfa4def521eef1a790b9e731b7 (patch)
treebdfabf4a930905b3281268126358cc70abd49411 /tools
parent33b9943304c509fb85b0827f88c024c4130f7c6c (diff)
ByteString->rtl::OString
Diffstat (limited to 'tools')
-rw-r--r--tools/bootstrp/prj.cxx9
-rw-r--r--tools/inc/bootstrp/prj.hxx1
2 files changed, 4 insertions, 6 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index d38cbd1c3ce2..391f4a6b142f 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -71,12 +71,11 @@ rtl::OString SimpleConfig::getNext()
rtl::OString SimpleConfig::GetNextLine()
{
- aFileStream.ReadLine ( aTmpStr );
- if ( aTmpStr.Search( "#" ) == 0 )
+ rtl::OString aTmpStr;
+ aFileStream.ReadLine(aTmpStr);
+ if (aTmpStr[0] == '#')
return rtl::OString('\t');
- aTmpStr.EraseLeadingAndTrailingChars();
- aTmpStr.SearchAndReplaceAll(' ', '\t');
- return aTmpStr;
+ return aTmpStr.trim().replace(' ', '\t');
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/bootstrp/prj.hxx b/tools/inc/bootstrp/prj.hxx
index 35896065d159..62d97272c2c5 100644
--- a/tools/inc/bootstrp/prj.hxx
+++ b/tools/inc/bootstrp/prj.hxx
@@ -43,7 +43,6 @@
class SimpleConfig
{
SvFileStream aFileStream;
- ByteString aTmpStr;
ByteString aStringBuffer;
rtl::OString GetNextLine();