summaryrefslogtreecommitdiff
path: root/tools/bootstrp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-18 21:32:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-19 09:59:21 +0100
commit68c3a63d7e4cb5cd510b980cfccb3eaf8b35012e (patch)
tree3379f9fadc714b737d841c21534c39f4d6b434af /tools/bootstrp
parentfab20ec189df54f2e0df9c929210c2eaa5dd656d (diff)
make this simpler
replace EraseLeadingChars+EraseTrailingChars with single EraseLeadingAndTrailingChars, and those change string they operate on, so need for assign to self afterwards
Diffstat (limited to 'tools/bootstrp')
-rw-r--r--tools/bootstrp/prj.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index 41f8f790612b..215116a2ea20 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -74,8 +74,7 @@ rtl::OString SimpleConfig::GetNextLine()
aFileStream.ReadLine ( aTmpStr );
if ( aTmpStr.Search( "#" ) == 0 )
return rtl::OString('\t');
- aTmpStr = aTmpStr.EraseLeadingChars();
- aTmpStr = aTmpStr.EraseTrailingChars();
+ aTmpStr.EraseLeadingAndTrailingChars();
while ( aTmpStr.SearchAndReplace(ByteString(' '),ByteString('\t') ) != STRING_NOTFOUND ) ;
int nLength = aTmpStr.Len();
for ( sal_uInt16 i = 0; i<= nLength; i++)