diff options
Diffstat (limited to 'writerperfect/source/vsdimp/VisioImportFilter.cxx')
-rw-r--r-- | writerperfect/source/vsdimp/VisioImportFilter.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/writerperfect/source/vsdimp/VisioImportFilter.cxx b/writerperfect/source/vsdimp/VisioImportFilter.cxx index b731769a1a66..c06076c0ea16 100644 --- a/writerperfect/source/vsdimp/VisioImportFilter.cxx +++ b/writerperfect/source/vsdimp/VisioImportFilter.cxx @@ -92,9 +92,9 @@ throw (RuntimeException) Reference < XInputStream > xInputStream; for ( sal_Int32 i = 0 ; i < nLength; i++) { - if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "InputStream" ) ) ) + if ( pValue[i].Name == "InputStream" ) pValue[i].Value >>= xInputStream; - else if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "URL" ) ) ) + else if ( pValue[i].Name == "URL" ) pValue[i].Value >>= sURL; } if ( !xInputStream.is() ) @@ -157,9 +157,9 @@ throw( com::sun::star::uno::RuntimeException ) Reference < XInputStream > xInputStream; for ( sal_Int32 i = 0 ; i < nLength; i++) { - if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "TypeName" ) ) ) + if ( pValue[i].Name == "TypeName" ) location=i; - else if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "InputStream" ) ) ) + else if ( pValue[i].Name == "InputStream" ) pValue[i].Value >>= xInputStream; } @@ -197,7 +197,7 @@ throw (Exception, RuntimeException) nLength = aAnySeq.getLength(); for ( sal_Int32 i = 0 ; i < nLength; i++) { - if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "Type" ) ) ) + if ( pValue[i].Name == "Type" ) { pValue[i].Value >>= msFilterName; break; @@ -222,8 +222,7 @@ throw (RuntimeException) #ifdef DEBUG std::cerr << "VisioImportFilter_supportsService" << std::endl; #endif - return (ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME1 ) ) || - ServiceName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( SERVICE_NAME2 ) ) ); + return ( ServiceName == SERVICE_NAME1 || ServiceName == SERVICE_NAME2 ); } Sequence< OUString > SAL_CALL VisioImportFilter_getSupportedServiceNames( ) throw (RuntimeException) |