From 4a11a47103fcbd7646234fc9565a409b8055507e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 30 Oct 2012 00:00:51 +0000 Subject: trivial empty-init String::Fill -> comphelper::padToLength Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e --- vcl/source/control/edit.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/source/control') 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; -- cgit