diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-12-28 02:19:28 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-12-28 02:21:19 +0100 |
commit | 45a85b5af82d130bb3eea2b6a168f4ceaff9975d (patch) | |
tree | 2a279490d66283598764d600b1db42cc6979a7b3 /unotools | |
parent | 8c3c491d4f419b496ac25f306b4b4ea7966465d7 (diff) |
Get rid of C2U in unotools.
Change-Id: I0ec321e1e4cdf7f20dba31f42ff493b2f3c7e74d
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configitem.cxx | 13 | ||||
-rw-r--r-- | unotools/source/config/fltrcfg.cxx | 28 |
2 files changed, 17 insertions, 24 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index a3eb7626a3e6..3e92ceebfbc5 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -41,8 +41,6 @@ #include <rtl/ustrbuf.hxx> using namespace utl; -using rtl::OUString; -using rtl::OString; using namespace com::sun::star::uno; using namespace com::sun::star::util; using namespace com::sun::star::lang; @@ -50,7 +48,6 @@ using namespace com::sun::star::beans; using namespace com::sun::star::container; using namespace com::sun::star::configuration; -#define C2U(cChar) OUString(RTL_CONSTASCII_USTRINGPARAM(cChar)) #include <cppuhelper/implbase1.hxx> // helper for implementations #ifdef DBG_UTIL @@ -285,7 +282,7 @@ void ConfigItem::impl_packLocalizedProperties( const Sequence< OUString >& for( nSourceCounter=0; nSourceCounter<nSourceSize; ++nSourceCounter ) { // If item a special localized one ... convert and pack it ... - if( lInValues[nSourceCounter].getValueTypeName() == C2U("com.sun.star.uno.XInterface") ) + if( lInValues[nSourceCounter].getValueTypeName() == "com.sun.star.uno.XInterface" ) { lInValues[nSourceCounter] >>= xLocalizedNode; Reference< XNameContainer > xSetAccess( xLocalizedNode, UNO_QUERY ); @@ -361,10 +358,10 @@ void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString > // If item a special localized one ... split it and insert his parts to output lists ... if( lInValues[nSourceCounter].getValueType() == ::getCppuType( (const Sequence< PropertyValue >*)NULL ) ) { - lInValues[nSourceCounter] >>= lProperties ; - sNodeName = lInNames[nSourceCounter] ; - sNodeName += C2U("/") ; - nPropertiesSize = lProperties.getLength() ; + lInValues[nSourceCounter] >>= lProperties; + nPropertiesSize = lProperties.getLength(); + + sNodeName = lInNames[nSourceCounter] + "/"; if( (nDestinationCounter+nPropertiesSize) > lOutNames.getLength() ) { diff --git a/unotools/source/config/fltrcfg.cxx b/unotools/source/config/fltrcfg.cxx index 834e92c183f1..4a2369fc7da3 100644 --- a/unotools/source/config/fltrcfg.cxx +++ b/unotools/source/config/fltrcfg.cxx @@ -28,10 +28,6 @@ using namespace utl; using namespace com::sun::star::uno; -using ::rtl::OUString; - -#define C2U(cChar) OUString(RTL_CONSTASCII_USTRINGPARAM(cChar)) - // ----------------------------------------------------------------------- #define FILTERCFG_WORD_CODE 0x0001 #define FILTERCFG_WORD_STORAGE 0x0002 @@ -94,8 +90,8 @@ void SvtAppFilterOptions_Impl::Commit() { Sequence<OUString> aNames(2); OUString* pNames = aNames.getArray(); - pNames[0] = C2U("Load"); - pNames[1] = C2U("Save"); + pNames[0] = "Load"; + pNames[1] = "Save"; Sequence<Any> aValues(aNames.getLength()); Any* pValues = aValues.getArray(); @@ -115,8 +111,8 @@ void SvtAppFilterOptions_Impl::Load() { Sequence<OUString> aNames(2); OUString* pNames = aNames.getArray(); - pNames[0] = C2U("Load"); - pNames[1] = C2U("Save"); + pNames[0] = "Load"; + pNames[1] = "Save"; Sequence<Any> aValues = GetProperties(aNames); const Any* pValues = aValues.getConstArray(); @@ -153,7 +149,7 @@ void SvtWriterFilterOptions_Impl::Commit() SvtAppFilterOptions_Impl::Commit(); Sequence<OUString> aNames(1); - aNames[0] = C2U("Executable"); + aNames[0] = "Executable"; Sequence<Any> aValues(1); aValues[0] <<= bLoadExecutable; @@ -165,7 +161,7 @@ void SvtWriterFilterOptions_Impl::Load() SvtAppFilterOptions_Impl::Load(); Sequence<OUString> aNames(1); - aNames[0] = C2U("Executable"); + aNames[0] = "Executable"; Sequence<Any> aValues = GetProperties(aNames); const Any* pValues = aValues.getConstArray(); @@ -199,7 +195,7 @@ void SvtCalcFilterOptions_Impl::Commit() SvtAppFilterOptions_Impl::Commit(); Sequence<OUString> aNames(1); - aNames[0] = C2U("Executable"); + aNames[0] = "Executable"; Sequence<Any> aValues(1); aValues[0] <<= bLoadExecutable; @@ -211,7 +207,7 @@ void SvtCalcFilterOptions_Impl::Load() SvtAppFilterOptions_Impl::Load(); Sequence<OUString> aNames(1); - aNames[0] = C2U("Executable"); + aNames[0] = "Executable"; Sequence<Any> aValues = GetProperties(aNames); const Any* pValues = aValues.getConstArray(); @@ -227,9 +223,9 @@ struct SvtFilterOptions_Impl SvtAppFilterOptions_Impl aImpressCfg; SvtFilterOptions_Impl() : - aWriterCfg(C2U("Office.Writer/Filter/Import/VBA")), - aCalcCfg(C2U("Office.Calc/Filter/Import/VBA")), - aImpressCfg(C2U("Office.Impress/Filter/Import/VBA")) + aWriterCfg("Office.Writer/Filter/Import/VBA"), + aCalcCfg("Office.Calc/Filter/Import/VBA"), + aImpressCfg("Office.Impress/Filter/Import/VBA") { nFlags = FILTERCFG_WORD_CODE | FILTERCFG_WORD_STORAGE | @@ -301,7 +297,7 @@ sal_Bool SvtFilterOptions_Impl::IsFlag( sal_uLong nFlag ) const // ----------------------------------------------------------------------- SvtFilterOptions::SvtFilterOptions() : - ConfigItem( C2U("Office.Common/Filter/Microsoft") ), + ConfigItem( "Office.Common/Filter/Microsoft" ), pImp(new SvtFilterOptions_Impl) { RTL_LOGFILE_CONTEXT(aLog, "unotools SvtFilterOptions::SvtFilterOptions()"); |