From 68c3a63d7e4cb5cd510b980cfccb3eaf8b35012e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 18 Sep 2011 21:32:25 +0100 Subject: make this simpler replace EraseLeadingChars+EraseTrailingChars with single EraseLeadingAndTrailingChars, and those change string they operate on, so need for assign to self afterwards --- tools/bootstrp/prj.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/bootstrp') 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++) -- cgit v1.2.3