diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-18 21:32:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-19 09:59:21 +0100 |
commit | 68c3a63d7e4cb5cd510b980cfccb3eaf8b35012e (patch) | |
tree | 3379f9fadc714b737d841c21534c39f4d6b434af /tools | |
parent | bFound is always false, and never changed, simplify (diff) | |
download | core-68c3a63d7e4cb5cd510b980cfccb3eaf8b35012e.tar.gz core-68c3a63d7e4cb5cd510b980cfccb3eaf8b35012e.zip |
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')
-rw-r--r-- | tools/bootstrp/prj.cxx | 3 |
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++) |