diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/request.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index d4f48cccc012..fcdb5c036f32 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -333,9 +333,7 @@ void SfxRequest_Impl::Record */ { - OUString aCommand(".uno:"); - aCommand += OUString( pSlot->GetUnoName(), strlen( pSlot->GetUnoName() ), RTL_TEXTENCODING_UTF8 ); - OUString aCmd( aCommand ); + OUString aCmd = ".uno:" + OUString::createFromAscii( pSlot->GetUnoName() ); if(!xRecorder.is()) return; |