diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-06-03 21:00:18 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-06-03 21:00:18 -0300 |
commit | 793f2404409a5c3a707fa5d0731e034b12f0b431 (patch) | |
tree | 0d0ba0484a1371a7685b9a4a0fa416d9b19939ab /linguistic/source/convdiclist.cxx | |
parent | 590140e61d159bdc392670cbc303f1ac1a67e8a4 (diff) |
targeted string re-work (ii)
Further simplification of d8e3eb234b729e9b3d9b8d81abd27f228fd06687
Change-Id: I2fa695e236cb6dc3be66fc57e7fae167cc368904
Diffstat (limited to 'linguistic/source/convdiclist.cxx')
-rw-r--r-- | linguistic/source/convdiclist.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx index 39cc442ece9a..101d5830f565 100644 --- a/linguistic/source/convdiclist.cxx +++ b/linguistic/source/convdiclist.cxx @@ -315,7 +315,7 @@ void SAL_CALL ConvDicNameContainer::removeByName( const OUString& rName ) { ::ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ::com::sun::star::ucb::XCommandEnvironment > () ); - aCnt.executeCommand( OUString("delete"), makeAny( sal_Bool( sal_True ) ) ); + aCnt.executeCommand( "delete", makeAny( sal_Bool( sal_True ) ) ); } catch( ::com::sun::star::ucb::CommandAbortedException& ) { @@ -442,8 +442,7 @@ ConvDicNameContainer & ConvDicList::GetNameContainer() if (!pNameContainer) { pNameContainer = new ConvDicNameContainer( *this ); - pNameContainer->AddConvDics( GetDictionaryWriteablePath(), - A2OU( CONV_DIC_EXT ) ); + pNameContainer->AddConvDics( GetDictionaryWriteablePath(), ::rtl::OUString(CONV_DIC_EXT) ); xNameContainer = pNameContainer; // access list of text conversion dictionaries to activate @@ -462,9 +461,9 @@ ConvDicNameContainer & ConvDicList::GetNameContainer() // since there is no UI to active/deactivate the dictionaries // for chinese text conversion they should be activated by default uno::Reference< XConversionDictionary > xS2TDic( - pNameContainer->GetByName( A2OU("ChineseS2T") ), UNO_QUERY ); + pNameContainer->GetByName( "ChineseS2T" ), UNO_QUERY ); uno::Reference< XConversionDictionary > xT2SDic( - pNameContainer->GetByName( A2OU("ChineseT2S") ), UNO_QUERY ); + pNameContainer->GetByName( "ChineseT2S" ), UNO_QUERY ); if (xS2TDic.is()) xS2TDic->setActive( sal_True ); if (xT2SDic.is()) @@ -666,7 +665,7 @@ uno::Sequence< OUString > ConvDicList::getSupportedServiceNames_Static() throw() { uno::Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = A2OU( SN_CONV_DICTIONARY_LIST ); + aSNS.getArray()[0] = SN_CONV_DICTIONARY_LIST; return aSNS; } |