diff options
Diffstat (limited to 'basctl/source/basicide/baside2.cxx')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index 657182d10420..fa9d50ea7de4 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -37,6 +37,7 @@ #include <com/sun/star/ui/dialogs/XFilePickerControlAccess.hpp> #include <com/sun/star/ui/dialogs/XFilterManager.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <sfx2/dinfdlg.hxx> #include <sfx2/dispatch.hxx> #include <sfx2/docfile.hxx> @@ -164,13 +165,13 @@ void lcl_ConvertTabsToSpaces( String& rLine ) if ( rLine.GetChar( nPos ) == '\t' ) { // not 4 Blanks, but at 4 TabPos: - String aBlanker; - aBlanker.Fill( ( 4 - ( nPos % 4 ) ), ' ' ); + rtl::OUStringBuffer aBlanker; + string::padToLength(aBlanker, ( 4 - ( nPos % 4 ) ), ' '); rLine.Erase( nPos, 1 ); - rLine.Insert( aBlanker, nPos ); + rLine.Insert( aBlanker.makeStringAndClear(), nPos ); nMax = rLine.Len(); } - nPos++; + ++nPos; } } } |