summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-30 00:00:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-10-30 00:05:59 +0000
commit4a11a47103fcbd7646234fc9565a409b8055507e (patch)
tree126503725e0272c5e2eba7556887576629035577 /basctl
parentce26903f7037c44a723716dfb38766ab9611c224 (diff)
trivial empty-init String::Fill -> comphelper::padToLength
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx9
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;
}
}
}