summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/accessibility/charmapacc.cxx4
-rw-r--r--svx/source/core/graphichelper.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/accessibility/charmapacc.cxx b/svx/source/accessibility/charmapacc.cxx
index 772832918726..7b655263063a 100644
--- a/svx/source/accessibility/charmapacc.cxx
+++ b/svx/source/accessibility/charmapacc.cxx
@@ -696,7 +696,7 @@ OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription()
{
OExternalLockGuard aGuard( this );
ensureAlive();
- String sDescription = SVX_RESSTR( RID_SVXSTR_CHARACTER_CODE );
+ OUString sDescription = SVX_RESSTR( RID_SVXSTR_CHARACTER_CODE );
sal_Unicode c = mpParent->maText[0];
char buf[16] = "0x0000";
@@ -709,7 +709,7 @@ OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription()
}
if( c < 256 )
snprintf( buf+6, 10, " (%d)", c );
- sDescription.AppendAscii(buf);
+ sDescription += OUString(buf, strlen(buf), RTL_TEXTENCODING_ASCII_US);
return sDescription;
}
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx
index 7c571e4fdbfa..42dc8cf5f49c 100644
--- a/svx/source/core/graphichelper.cxx
+++ b/svx/source/core/graphichelper.cxx
@@ -207,12 +207,12 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
OUString aMimeType;
SvtPathOptions aPathOpt;
- String sGraphicPath( aPathOpt.GetGraphicPath() );
+ OUString sGraphicPath( aPathOpt.GetGraphicPath() );
FileDialogHelper aDialogHelper( TemplateDescription::FILESAVE_AUTOEXTENSION, 0 );
Reference < XFilePicker > xFilePicker = aDialogHelper.GetFilePicker();
- aDialogHelper.SetTitle( OUString( "Save as Picture" ) );
+ aDialogHelper.SetTitle( "Save as Picture" );
INetURLObject aPath;
aPath.SetSmartURL( sGraphicPath );