summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-26 20:44:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-27 09:46:30 +0100
commitd3788f3276c55c9996fb4ed83cebe7e30519ce2f (patch)
treea00f125fc7d511edaa43b83a54dc4c86e7e77a26 /accessibility
parent1278b084be1b128cd4d85473df0b0f62de16bf25 (diff)
UniString::Fill->padToLength(OUStringBuffer
Change-Id: I61a562982af75fd3141b4b5d55840c0ebc94306c
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/standard/vclxaccessibleedit.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx
index 2fb078a6593f..95fda2b55abd 100644
--- a/accessibility/source/standard/vclxaccessibleedit.cxx
+++ b/accessibility/source/standard/vclxaccessibleedit.cxx
@@ -41,6 +41,7 @@
#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
#include <cppuhelper/typeprovider.hxx>
#include <comphelper/sequence.hxx>
+#include <comphelper/string.hxx>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <vcl/edit.hxx>
@@ -154,8 +155,9 @@ OUString VCLXAccessibleEdit::implGetText()
xub_Unicode cEchoChar = pEdit->GetEchoChar();
if ( !cEchoChar )
cEchoChar = '*';
- XubString sTmp;
- aText = sTmp.Fill( (sal_uInt16)aText.getLength(), cEchoChar );
+ OUStringBuffer sTmp;
+ aText = comphelper::string::padToLength(sTmp, aText.getLength(),
+ cEchoChar).makeStringAndClear();
}
}