diff options
-rw-r--r-- | tools/bootstrp/prj.cxx | 9 | ||||
-rw-r--r-- | tools/inc/bootstrp/prj.hxx | 1 |
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(); |