diff options
author | Jean-Noël Rouvignac <jn.rouvignac@gmail.com> | 2013-01-30 11:44:23 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-01-30 12:54:40 +0000 |
commit | 97eb8a6e0eb830f37dcba64a51d725aab4c5ff53 (patch) | |
tree | a1a95b8249052d846a997ad1729758168d6a3b24 /editeng | |
parent | f8569cd9a28a3a8856dba4ad53218aa6cc073521 (diff) |
Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/textconv.cxx | 6 | ||||
-rw-r--r-- | editeng/source/misc/unolingu.cxx | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/editeng/source/editeng/textconv.cxx b/editeng/source/editeng/textconv.cxx index 4f494f4f56de..710a24c0d5fc 100644 --- a/editeng/source/editeng/textconv.cxx +++ b/editeng/source/editeng/textconv.cxx @@ -41,7 +41,7 @@ using namespace com::sun::star::beans; using namespace com::sun::star::lang; using namespace com::sun::star::linguistic2; -#define C2U(cChar) OUString::createFromAscii(cChar) +#define cChar OUString::createFromAscii(cChar) ////////////////////////////////////////////////////////////////////// @@ -352,8 +352,8 @@ void TextConvWrapper::ReplaceUnit( if (!bOK) return; - static OUString aBracketedStart( C2U( "(" ) ); - static OUString aBracketedEnd( C2U( ")" ) ); + static OUString aBracketedStart( "(" ); + static OUString aBracketedEnd( ")" ); // select current unit SelectNewUnit_impl( nUnitStart, nUnitEnd ); diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx index 733e66b3d2cc..a51f998e6a68 100644 --- a/editeng/source/misc/unolingu.cxx +++ b/editeng/source/misc/unolingu.cxx @@ -123,7 +123,7 @@ void ThesDummy_Impl::GetCfgLocales() if (!pLocaleSeq) { SvtLinguConfig aCfg; - String aNode( A2OU( "ServiceManager/ThesaurusList" ) ); + String aNode("ServiceManager/ThesaurusList"); Sequence < OUString > aNodeNames( aCfg.GetNodeNames( aNode ) ); const OUString *pNodeNames = aNodeNames.getConstArray(); sal_Int32 nLen = aNodeNames.getLength(); @@ -634,7 +634,7 @@ uno::Reference< XDictionaryList > LinguMgr::GetDicList() uno::Reference< XMultiServiceFactory > xMgr( getProcessServiceFactory() ); xDicList = uno::Reference< XDictionaryList > ( xMgr->createInstance( - A2OU("com.sun.star.linguistic2.DictionaryList") ), UNO_QUERY ); + "com.sun.star.linguistic2.DictionaryList" ), UNO_QUERY ); return xDicList; } @@ -648,7 +648,7 @@ uno::Reference< XPropertySet > LinguMgr::GetProp() uno::Reference< XMultiServiceFactory > xMgr( getProcessServiceFactory() ); xProp = uno::Reference< XPropertySet > ( xMgr->createInstance( - A2OU("com.sun.star.linguistic2.LinguProperties") ), UNO_QUERY ); + "com.sun.star.linguistic2.LinguProperties" ), UNO_QUERY ); return xProp; } @@ -664,7 +664,7 @@ uno::Reference< XDictionary > LinguMgr::GetIgnoreAll() if (xTmpDicList.is()) { xIgnoreAll = uno::Reference< XDictionary > ( xTmpDicList->getDictionaryByName( - A2OU("IgnoreAllList") ), UNO_QUERY ); + "IgnoreAllList" ), UNO_QUERY ); } return xIgnoreAll; } @@ -682,7 +682,7 @@ uno::Reference< XDictionary > LinguMgr::GetChangeAll() { xChangeAll = uno::Reference< XDictionary > ( _xDicList->createDictionary( - A2OU("ChangeAllList"), + "ChangeAllList", LanguageTag( LANGUAGE_NONE ).getLocale(), DictionaryType_NEGATIVE, String() ), UNO_QUERY ); } |