diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-18 21:36:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-19 09:59:22 +0100 |
commit | 33b9943304c509fb85b0827f88c024c4130f7c6c (patch) | |
tree | e4aa49623c4897c555c1bb662e2367738d9fbb2f /tools/bootstrp/prj.cxx | |
parent | 68c3a63d7e4cb5cd510b980cfccb3eaf8b35012e (diff) |
why search and replace all spaces with tabs twice
Diffstat (limited to 'tools/bootstrp/prj.cxx')
-rw-r--r-- | tools/bootstrp/prj.cxx | 8 |
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; } |