From d3788f3276c55c9996fb4ed83cebe7e30519ce2f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 26 Sep 2012 20:44:58 +0100 Subject: UniString::Fill->padToLength(OUStringBuffer Change-Id: I61a562982af75fd3141b4b5d55840c0ebc94306c --- accessibility/source/standard/vclxaccessibleedit.cxx | 6 ++++-- sfx2/source/dialog/dinfdlg.cxx | 2 +- 2 files changed, 5 insertions(+), 3 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 #include #include +#include #include #include #include @@ -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(); } } diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 78dbfe341121..79feb0c16a8b 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -884,7 +884,7 @@ IMPL_LINK_NOARG(SfxDocumentPage, DeleteHdl) now.Get100Sec(), now.GetSec(), now.GetMin(), now.GetHour(), now.GetDay(), now.GetMonth(), now.GetYear() ); aCreateValFt.SetText( ConvertDateTime_Impl( aName, uDT, aLocaleWrapper ) ); - XubString aEmpty; + OUString aEmpty; aChangeValFt.SetText( aEmpty ); aPrintValFt.SetText( aEmpty ); const Time aTime( 0 ); -- cgit