Kaydet (Commit) e0848f6d authored tarafından Noel Grandin's avatar Noel Grandin

convert svx/source/accessibility/*.cxx from String to OUString

Change-Id: I98ddae6dafea9c52e4b96274c5f2881d929cf096
üst a628d232
...@@ -696,7 +696,7 @@ OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription() ...@@ -696,7 +696,7 @@ OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription()
{ {
OExternalLockGuard aGuard( this ); OExternalLockGuard aGuard( this );
ensureAlive(); ensureAlive();
String sDescription = SVX_RESSTR( RID_SVXSTR_CHARACTER_CODE ); OUString sDescription = SVX_RESSTR( RID_SVXSTR_CHARACTER_CODE );
sal_Unicode c = mpParent->maText[0]; sal_Unicode c = mpParent->maText[0];
char buf[16] = "0x0000"; char buf[16] = "0x0000";
...@@ -709,7 +709,7 @@ OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription() ...@@ -709,7 +709,7 @@ OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription()
} }
if( c < 256 ) if( c < 256 )
snprintf( buf+6, 10, " (%d)", c ); snprintf( buf+6, 10, " (%d)", c );
sDescription.AppendAscii(buf); sDescription += OUString(buf, strlen(buf), RTL_TEXTENCODING_ASCII_US);
return sDescription; return sDescription;
} }
......
...@@ -207,12 +207,12 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha ...@@ -207,12 +207,12 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha
OUString aMimeType; OUString aMimeType;
SvtPathOptions aPathOpt; SvtPathOptions aPathOpt;
String sGraphicPath( aPathOpt.GetGraphicPath() ); OUString sGraphicPath( aPathOpt.GetGraphicPath() );
FileDialogHelper aDialogHelper( TemplateDescription::FILESAVE_AUTOEXTENSION, 0 ); FileDialogHelper aDialogHelper( TemplateDescription::FILESAVE_AUTOEXTENSION, 0 );
Reference < XFilePicker > xFilePicker = aDialogHelper.GetFilePicker(); Reference < XFilePicker > xFilePicker = aDialogHelper.GetFilePicker();
aDialogHelper.SetTitle( OUString( "Save as Picture" ) ); aDialogHelper.SetTitle( "Save as Picture" );
INetURLObject aPath; INetURLObject aPath;
aPath.SetSmartURL( sGraphicPath ); aPath.SetSmartURL( sGraphicPath );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment