no need for this temporary OString

Change-Id: I8b5d69f7e64a83e52a41c285f5ef186a666ccd55
This commit is contained in:
Markus Mohrhard 2016-07-15 15:03:39 +02:00
parent 8781dbe099
commit a980b6c8ae

View File

@ -1050,7 +1050,7 @@ void SAL_CALL ChartController::layoutEvent(
namespace namespace
{ {
bool lcl_isFormatObjectCommand( const OString& aCommand ) bool lcl_isFormatObjectCommand( const OUString& aCommand )
{ {
if( aCommand == "MainTitle" if( aCommand == "MainTitle"
|| aCommand == "SubTitle" || aCommand == "SubTitle"
@ -1146,8 +1146,7 @@ void SAL_CALL ChartController::dispatch(
const uno::Sequence< beans::PropertyValue >& rArgs ) const uno::Sequence< beans::PropertyValue >& rArgs )
throw (uno::RuntimeException, std::exception) throw (uno::RuntimeException, std::exception)
{ {
//@todo avoid OString OUString aCommand = rURL.Path;
OString aCommand( OUStringToOString( rURL.Path, RTL_TEXTENCODING_ASCII_US ) );
if(aCommand == "Paste") if(aCommand == "Paste")
this->executeDispatch_Paste(); this->executeDispatch_Paste();