diff options
Diffstat (limited to 'tools/bootstrp/prj.cxx')
-rw-r--r-- | tools/bootstrp/prj.cxx | 9 |
1 files changed, 4 insertions, 5 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: */ |