From 97eb8a6e0eb830f37dcba64a51d725aab4c5ff53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Rouvignac?= Date: Wed, 30 Jan 2013 11:44:23 +0100 Subject: Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd Reviewed-on: https://gerrit.libreoffice.org/1924 Tested-by: Luboš Luňák Reviewed-by: Luboš Luňák --- dtrans/source/win32/ftransl/ftransl.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'dtrans/source/win32') diff --git a/dtrans/source/win32/ftransl/ftransl.cxx b/dtrans/source/win32/ftransl/ftransl.cxx index 4f64f15311c4..422ea63a79d4 100644 --- a/dtrans/source/win32/ftransl/ftransl.cxx +++ b/dtrans/source/win32/ftransl/ftransl.cxx @@ -39,7 +39,6 @@ #define CPPUTYPE_DEFAULT CPPUTYPE_SEQSALINT8 #define CPPUTYPE_OUSTR getCppuType( (const ::rtl::OUString*) 0 ) #define CPPUTYPE_SALINT32 getCppuType( ( sal_Int32 * ) 0 ) -#define OUSTR( str ) OUString( #str ) #define EMPTY_OUSTR OUString() const rtl::OUString Windows_FormatName ("windows_formatname"); @@ -126,7 +125,7 @@ Any SAL_CALL CDataFormatTranslator::getSystemDataTypeFromDataFlavor( const DataF try { Reference< XMimeContentTypeFactory > refXMimeCntFactory( m_SrvMgr->createInstance( - OUSTR( com.sun.star.datatransfer.MimeContentTypeFactory ) ), UNO_QUERY ); + "com.sun.star.datatransfer.MimeContentTypeFactory" ), UNO_QUERY ); if ( !refXMimeCntFactory.is( ) ) throw RuntimeException( ); @@ -140,10 +139,10 @@ Any SAL_CALL CDataFormatTranslator::getSystemDataTypeFromDataFlavor( const DataF // default is CF_TEXT aAny <<= static_cast< sal_Int32 >( CF_TEXT ); - if ( refXMimeCntType->hasParameter( OUSTR( charset ) ) ) + if ( refXMimeCntType->hasParameter( "charset" ) ) { // but maybe it is unicode text or oem text - OUString charset = refXMimeCntType->getParameterValue( OUSTR( charset ) ); + OUString charset = refXMimeCntType->getParameterValue( "charset" ); findStandardFormatIdForCharset( charset, aAny ); } } @@ -546,7 +545,7 @@ void SAL_CALL CDataFormatTranslator::findDataFlavorForNativeFormatName( const OU void SAL_CALL CDataFormatTranslator::findStandardFormatIdForCharset( const OUString& aCharset, Any& aAny ) const { - if ( aCharset.equalsIgnoreAsciiCase( OUSTR( utf-16 ) ) ) + if ( aCharset.equalsIgnoreAsciiCase( "utf-16" ) ) aAny <<= static_cast< sal_Int32 >( CF_UNICODETEXT ); else { @@ -610,7 +609,7 @@ void SAL_CALL CDataFormatTranslator::findStdFormatIdOrNativeFormatNameForFullMed inline sal_Bool CDataFormatTranslator::isTextPlainMediaType( const OUString& fullMediaType ) const { - return (fullMediaType.equalsIgnoreAsciiCase(OUSTR(text/plain))); + return fullMediaType.equalsIgnoreAsciiCase("text/plain"); } // ------------------------------------------------- -- cgit v1.2.1