diff options
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 6 | ||||
-rw-r--r-- | writerperfect/source/draw/WPGImportFilter.cxx | 12 | ||||
-rw-r--r-- | writerperfect/source/writer/MSWorksImportFilter.cxx | 12 | ||||
-rw-r--r-- | writerperfect/source/writer/WordPerfectImportFilter.cxx | 20 |
4 files changed, 25 insertions, 25 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 100f7eca2af8..8e5fd668551f 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -6006,7 +6006,7 @@ namespace osl_Directory # define PATH_BUFFER_SIZE PATH_MAX #endif - char TEST_PATH_POSTFIX[] = "hello/world"; +#define TEST_PATH_POSTFIX "hello/world" //######################################## OUString get_test_path() @@ -6113,8 +6113,8 @@ namespace osl_Directory //########################################## void with_relative_path() { - FileBase::RC rc = Directory::createPath( - OUString(TEST_PATH_POSTFIX)); + FileBase::RC rc = Directory::createPath( OUString(TEST_PATH_POSTFIX)); + CPPUNIT_ASSERT_MESSAGE ( diff --git a/writerperfect/source/draw/WPGImportFilter.cxx b/writerperfect/source/draw/WPGImportFilter.cxx index 4c6586bb3ded..4ac1fd526dee 100644 --- a/writerperfect/source/draw/WPGImportFilter.cxx +++ b/writerperfect/source/draw/WPGImportFilter.cxx @@ -104,7 +104,7 @@ throw (RuntimeException) sFileName = OUStringToOString(sURL, RTL_TEXTENCODING_INFO_ASCII); // An XML import service: what we push sax messages to.. - OUString sXMLImportService ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Draw.XMLOasisImporter" ) ); + OUString sXMLImportService ( "com.sun.star.comp.Draw.XMLOasisImporter" ); Reference < XDocumentHandler > xInternalHandler( comphelper::ComponentContext( mxContext ).createComponent( sXMLImportService ), UNO_QUERY ); // The XImporter sets up an empty target document for XDocumentHandler to write to.. @@ -163,14 +163,14 @@ throw( com::sun::star::uno::RuntimeException ) WPXSvInputStream input( xInputStream ); if (libwpg::WPGraphics::isSupported(&input)) - sTypeName = OUString( RTL_CONSTASCII_USTRINGPARAM ( "draw_WordPerfect_Graphics" ) ); + sTypeName = OUString( "draw_WordPerfect_Graphics" ); if (!sTypeName.isEmpty()) { if ( location == Descriptor.getLength() ) { Descriptor.realloc(nLength+1); - Descriptor[location].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")); + Descriptor[location].Name = ::rtl::OUString("TypeName"); } Descriptor[location].Value <<=sTypeName; @@ -208,7 +208,7 @@ throw (RuntimeException) #ifdef DEBUG std::cerr << "WPGImportFilter_getImplementationName" << std::endl; #endif - return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Draw.WPGImportFilter" ) ); + return OUString ( "com.sun.star.comp.Draw.WPGImportFilter" ); } #define SERVICE_NAME1 "com.sun.star.document.ImportFilter" @@ -229,8 +229,8 @@ throw (RuntimeException) #endif Sequence < OUString > aRet(2); OUString *pArray = aRet.getArray(); - pArray[0] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME1 ) ); - pArray[1] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME2 ) ); + pArray[0] = OUString ( SERVICE_NAME1 ); + pArray[1] = OUString ( SERVICE_NAME2 ); return aRet; } #undef SERVICE_NAME2 diff --git a/writerperfect/source/writer/MSWorksImportFilter.cxx b/writerperfect/source/writer/MSWorksImportFilter.cxx index 5712703b039e..5da94984dd48 100644 --- a/writerperfect/source/writer/MSWorksImportFilter.cxx +++ b/writerperfect/source/writer/MSWorksImportFilter.cxx @@ -104,7 +104,7 @@ throw (RuntimeException) sFileName = OUStringToOString(sURL, RTL_TEXTENCODING_INFO_ASCII); // An XML import service: what we push sax messages to.. - OUString sXMLImportService ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Writer.XMLOasisImporter" ) ); + OUString sXMLImportService ( "com.sun.star.comp.Writer.XMLOasisImporter" ); Reference < XDocumentHandler > xInternalHandler( comphelper::ComponentContext( mxContext ).createComponent( sXMLImportService ), UNO_QUERY ); // The XImporter sets up an empty target document for XDocumentHandler to write to.. @@ -191,14 +191,14 @@ throw( com::sun::star::uno::RuntimeException ) confidence = WPSDocument::isFileFormatSupported(&input); if ((confidence == WPS_CONFIDENCE_EXCELLENT) || (confidence == WPS_CONFIDENCE_GOOD)) - sTypeName = OUString( RTL_CONSTASCII_USTRINGPARAM ( "writer_MS_Works_Document" ) ); + sTypeName = OUString( "writer_MS_Works_Document" ); if (!sTypeName.isEmpty()) { if ( location == Descriptor.getLength() ) { Descriptor.realloc(nLength+1); - Descriptor[location].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")); + Descriptor[location].Name = ::rtl::OUString("TypeName"); } Descriptor[location].Value <<=sTypeName; @@ -232,7 +232,7 @@ throw (Exception, RuntimeException) OUString MSWorksImportFilter_getImplementationName () throw (RuntimeException) { - return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Writer.MSWorksImportFilter" ) ); + return OUString ( "com.sun.star.comp.Writer.MSWorksImportFilter" ); } #define SERVICE_NAME1 "com.sun.star.document.ImportFilter" @@ -247,8 +247,8 @@ throw (RuntimeException) { Sequence < OUString > aRet(2); OUString *pArray = aRet.getArray(); - pArray[0] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME1 ) ); - pArray[1] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME2 ) ); + pArray[0] = OUString ( SERVICE_NAME1 ); + pArray[1] = OUString ( SERVICE_NAME2 ); return aRet; } #undef SERVICE_NAME2 diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx index b0d33bd5d839..bb9fb07dd21f 100644 --- a/writerperfect/source/writer/WordPerfectImportFilter.cxx +++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx @@ -158,7 +158,7 @@ throw (RuntimeException) } // An XML import service: what we push sax messages to.. - OUString sXMLImportService ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Writer.XMLOasisImporter" ) ); + OUString sXMLImportService ( "com.sun.star.comp.Writer.XMLOasisImporter" ); Reference < XDocumentHandler > xInternalHandler( comphelper::ComponentContext( mxContext ).createComponent( sXMLImportService ), UNO_QUERY ); // The XImporter sets up an empty target document for XDocumentHandler to write to.. @@ -245,14 +245,14 @@ throw( uno::RuntimeException ) confidence = WPDocument::isFileFormatSupported(&input); if (confidence == WPD_CONFIDENCE_EXCELLENT || confidence == WPD_CONFIDENCE_SUPPORTED_ENCRYPTION) - sTypeName = OUString( RTL_CONSTASCII_USTRINGPARAM ( "writer_WordPerfect_Document" ) ); + sTypeName = OUString( "writer_WordPerfect_Document" ); if (!sTypeName.isEmpty()) { if ( location == Descriptor.getLength() ) { Descriptor.realloc(nLength+1); - Descriptor[location].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")); + Descriptor[location].Name = ::rtl::OUString("TypeName"); } Descriptor[location].Value <<=sTypeName; @@ -286,7 +286,7 @@ throw (Exception, RuntimeException) OUString WordPerfectImportFilter_getImplementationName () throw (RuntimeException) { - return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Writer.WordPerfectImportFilter" ) ); + return OUString ( "com.sun.star.comp.Writer.WordPerfectImportFilter" ); } #define SERVICE_NAME1 "com.sun.star.document.ImportFilter" @@ -301,8 +301,8 @@ throw (RuntimeException) { Sequence < OUString > aRet(2); OUString *pArray = aRet.getArray(); - pArray[0] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME1 ) ); - pArray[1] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME2 ) ); + pArray[0] = OUString ( SERVICE_NAME1 ); + pArray[1] = OUString ( SERVICE_NAME2 ); return aRet; } #undef SERVICE_NAME2 @@ -380,7 +380,7 @@ uno::Sequence<beans::PropertyValue> SAL_CALL WordPerfectImportFilterDialog::getP uno::Sequence<beans::PropertyValue> aRet(1); beans::PropertyValue *pArray = aRet.getArray(); - pArray[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Password") ); + pArray[0].Name = rtl::OUString( "Password" ); pArray[0].Value <<= msPassword; return aRet; @@ -397,7 +397,7 @@ throw(beans::UnknownPropertyException, beans::PropertyVetoException, const beans::PropertyValue &rProp = pPropArray[i]; ::rtl::OUString aPropName = rProp.Name; - if ( aPropName == ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Password")) ) + if ( aPropName == ::rtl::OUString("Password") ) rProp.Value >>= msPassword; else if ( aPropName == "InputStream" ) rProp.Value >>= mxInputStream; @@ -427,7 +427,7 @@ throw (RuntimeException) OUString WordPerfectImportFilterDialog_getImplementationName () throw (RuntimeException) { - return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Writer.WordPerfectImportFilterDialog" ) ); + return OUString ( "com.sun.star.comp.Writer.WordPerfectImportFilterDialog" ); } #define SERVICE_NAME "com.sun.star.ui.dialogs.FilterOptionsDialog" @@ -442,7 +442,7 @@ throw (RuntimeException) { Sequence < OUString > aRet(1); OUString *pArray = aRet.getArray(); - pArray[0] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) ); + pArray[0] = OUString ( SERVICE_NAME ); return aRet; } #undef SERVICE_NAME |