summaryrefslogtreecommitdiff
path: root/filter/source/xmlfilterdetect/filterdetect.cxx
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 19:49:53 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 20:03:42 +0200
commitd6bc02f8c4cd0f50f0a2631ac7634dab408efc1f (patch)
treeb5a12df1fcae025715633469b75ab4c9b6f6d279 /filter/source/xmlfilterdetect/filterdetect.cxx
parent0e1c0587617e0a6e4295a13599e97cdf6d1d2ea9 (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Diffstat (limited to 'filter/source/xmlfilterdetect/filterdetect.cxx')
-rw-r--r--filter/source/xmlfilterdetect/filterdetect.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/filter/source/xmlfilterdetect/filterdetect.cxx b/filter/source/xmlfilterdetect/filterdetect.cxx
index 8060a6b5c03e..66c07da73102 100644
--- a/filter/source/xmlfilterdetect/filterdetect.cxx
+++ b/filter/source/xmlfilterdetect/filterdetect.cxx
@@ -154,15 +154,15 @@ bool isXMLStream(const ::rtl::OString& aHeaderStrm)
sal_Int32 location=nLength;
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 ( "URL" ) ))
+ else if ( pValue[i].Name == "URL" )
{
pValue[i].Value >>= sUrl;
}
- else if (pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "InputStream" ) ))
+ else if ( pValue[i].Name == "InputStream" )
{
pValue[i].Value >>= xInStream ;
}
@@ -207,7 +207,7 @@ bool isXMLStream(const ::rtl::OString& aHeaderStrm)
{
::rtl::OUString tmpStr;
lProps[j].Value >>=tmpStr;
- if ((lProps[j].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ClipboardFormat"))) && !tmpStr.isEmpty())
+ if ( lProps[j].Name == "ClipboardFormat" && !tmpStr.isEmpty() )
{
sTypeName = supportedByType(tmpStr,resultString, myTypes[i]);
}
@@ -248,18 +248,18 @@ void SAL_CALL FilterDetect::initialize( const Sequence< Any >& aArguments )
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;
}
- else if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "UserData" ) ) )
+ else if ( pValue[i].Name == "UserData" )
{
pValue[i].Value >>= msUserData;
}
- else if ( pValue[i].Name.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "TemplateName" ) ) )
+ else if ( pValue[i].Name == "TemplateName" )
{
pValue[i].Value>>=msTemplateName;