diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-30 00:00:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-30 00:05:59 +0000 |
commit | 4a11a47103fcbd7646234fc9565a409b8055507e (patch) | |
tree | 126503725e0272c5e2eba7556887576629035577 /vcl/source/control | |
parent | ce26903f7037c44a723716dfb38766ab9611c224 (diff) |
trivial empty-init String::Fill -> comphelper::padToLength
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/edit.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index f5a5f41bfb1d..2f3b44014762 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -520,14 +520,14 @@ XubString Edit::ImplGetText() const { if ( mcEchoChar || (GetStyle() & WB_PASSWORD) ) { - XubString aText; sal_Unicode cEchoChar; if ( mcEchoChar ) cEchoChar = mcEchoChar; else cEchoChar = '*'; - aText.Fill( maText.Len(), cEchoChar ); - return aText; + rtl::OUStringBuffer aText; + comphelper::string::padToLength(aText, maText.Len(), cEchoChar); + return aText.makeStringAndClear(); } else return maText; |