UniString::Fill->padToLength(OUStringBuffer
Change-Id: I61a562982af75fd3141b4b5d55840c0ebc94306c
This commit is contained in:
@@ -41,6 +41,7 @@
|
|||||||
#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
|
#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
|
||||||
#include <cppuhelper/typeprovider.hxx>
|
#include <cppuhelper/typeprovider.hxx>
|
||||||
#include <comphelper/sequence.hxx>
|
#include <comphelper/sequence.hxx>
|
||||||
|
#include <comphelper/string.hxx>
|
||||||
#include <vcl/svapp.hxx>
|
#include <vcl/svapp.hxx>
|
||||||
#include <vcl/window.hxx>
|
#include <vcl/window.hxx>
|
||||||
#include <vcl/edit.hxx>
|
#include <vcl/edit.hxx>
|
||||||
@@ -154,8 +155,9 @@ OUString VCLXAccessibleEdit::implGetText()
|
|||||||
xub_Unicode cEchoChar = pEdit->GetEchoChar();
|
xub_Unicode cEchoChar = pEdit->GetEchoChar();
|
||||||
if ( !cEchoChar )
|
if ( !cEchoChar )
|
||||||
cEchoChar = '*';
|
cEchoChar = '*';
|
||||||
XubString sTmp;
|
OUStringBuffer sTmp;
|
||||||
aText = sTmp.Fill( (sal_uInt16)aText.getLength(), cEchoChar );
|
aText = comphelper::string::padToLength(sTmp, aText.getLength(),
|
||||||
|
cEchoChar).makeStringAndClear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -884,7 +884,7 @@ IMPL_LINK_NOARG(SfxDocumentPage, DeleteHdl)
|
|||||||
now.Get100Sec(), now.GetSec(), now.GetMin(), now.GetHour(),
|
now.Get100Sec(), now.GetSec(), now.GetMin(), now.GetHour(),
|
||||||
now.GetDay(), now.GetMonth(), now.GetYear() );
|
now.GetDay(), now.GetMonth(), now.GetYear() );
|
||||||
aCreateValFt.SetText( ConvertDateTime_Impl( aName, uDT, aLocaleWrapper ) );
|
aCreateValFt.SetText( ConvertDateTime_Impl( aName, uDT, aLocaleWrapper ) );
|
||||||
XubString aEmpty;
|
OUString aEmpty;
|
||||||
aChangeValFt.SetText( aEmpty );
|
aChangeValFt.SetText( aEmpty );
|
||||||
aPrintValFt.SetText( aEmpty );
|
aPrintValFt.SetText( aEmpty );
|
||||||
const Time aTime( 0 );
|
const Time aTime( 0 );
|
||||||
|
Reference in New Issue
Block a user