summaryrefslogtreecommitdiff
path: root/writerperfect/source/cdrimp/CDRImportFilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerperfect/source/cdrimp/CDRImportFilter.cxx')
-rw-r--r--writerperfect/source/cdrimp/CDRImportFilter.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/writerperfect/source/cdrimp/CDRImportFilter.cxx b/writerperfect/source/cdrimp/CDRImportFilter.cxx
index 8e17102b157f..91876898b974 100644
--- a/writerperfect/source/cdrimp/CDRImportFilter.cxx
+++ b/writerperfect/source/cdrimp/CDRImportFilter.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 << "CDRImportFilter_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 CDRImportFilter_getSupportedServiceNames( )
throw (RuntimeException)