summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/dlgctrl.cxx4
-rw-r--r--vcl/source/window/msgbox.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index acc466a323fe..f6d96be1f417 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -421,7 +421,7 @@ static Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, xub_Uni
xCharClass = vcl::unohelper::CreateCharacterClassification();
const ::com::sun::star::lang::Locale& rLocale = Application::GetSettings().GetUILocale();
- cCharCode = xCharClass->toUpper( String(cCharCode), 0, 1, rLocale )[0];
+ cCharCode = xCharClass->toUpper( rtl::OUString(cCharCode), 0, 1, rLocale )[0];
if ( i < nFormEnd )
pWindow = ImplGetNextWindow( pParent, i, i, sal_True );
@@ -434,7 +434,7 @@ static Window* ImplFindAccelWindow( Window* pParent, sal_uInt16& rIndex, xub_Uni
while ( nPos != STRING_NOTFOUND )
{
cCompareChar = aStr.GetChar( nPos+1 );
- cCompareChar = xCharClass->toUpper( String(cCompareChar), 0, 1, rLocale )[0];
+ cCompareChar = xCharClass->toUpper( rtl::OUString(cCompareChar), 0, 1, rLocale )[0];
if ( cCompareChar == cCharCode )
{
// Bei Static-Controls auf das naechste Controlm weiterschalten
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index 8f3e296fa567..ad1d867b3fd8 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -265,7 +265,7 @@ void MessBox::ImplPosControls()
rtl::OUString aTabStr(" ");
sal_uInt16 nIndex = 0;
while ( nIndex != STRING_NOTFOUND )
- nIndex = aMessText.SearchAndReplace( '\t', aTabStr, nIndex );
+ nIndex = aMessText.SearchAndReplace( rtl::OUString('\t'), aTabStr, nIndex );
// Wenn Fenster zu schmall, machen wir Dialog auch breiter
if ( mpWindowImpl->mbFrame )