summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-18 21:36:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-19 09:59:22 +0100
commit33b9943304c509fb85b0827f88c024c4130f7c6c (patch)
treee4aa49623c4897c555c1bb662e2367738d9fbb2f /tools
parentmake this simpler (diff)
downloadcore-33b9943304c509fb85b0827f88c024c4130f7c6c.tar.gz
core-33b9943304c509fb85b0827f88c024c4130f7c6c.zip
why search and replace all spaces with tabs twice
Diffstat (limited to 'tools')
-rw-r--r--tools/bootstrp/prj.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index 215116a2ea20..d38cbd1c3ce2 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -75,13 +75,7 @@ rtl::OString SimpleConfig::GetNextLine()
if ( aTmpStr.Search( "#" ) == 0 )
return rtl::OString('\t');
aTmpStr.EraseLeadingAndTrailingChars();
- while ( aTmpStr.SearchAndReplace(ByteString(' '),ByteString('\t') ) != STRING_NOTFOUND ) ;
- int nLength = aTmpStr.Len();
- for ( sal_uInt16 i = 0; i<= nLength; i++)
- {
- if ( aTmpStr.GetChar( i ) == 0x20 )
- aTmpStr.SetChar( i, 0x09 );
- }
+ aTmpStr.SearchAndReplaceAll(' ', '\t');
return aTmpStr;
}