summaryrefslogtreecommitdiff
path: root/filter/source/xmlfilterdetect/filterdetect.cxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-06-02 13:53:22 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-06-02 13:53:22 -0500
commit695e793619c7bcb851cf434f722e4668638056ab (patch)
treedfcc1131e66780ad68d2362a870aa16e542a562e /filter/source/xmlfilterdetect/filterdetect.cxx
parent0188ebf354cb2776f9d846a5f03b07f8bedf348e (diff)
targeted string re-work
Change-Id: I2ee4fbb1e166a926b36b100c47e6da4cf39d51b4
Diffstat (limited to 'filter/source/xmlfilterdetect/filterdetect.cxx')
-rw-r--r--filter/source/xmlfilterdetect/filterdetect.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/xmlfilterdetect/filterdetect.cxx b/filter/source/xmlfilterdetect/filterdetect.cxx
index 6d0abe1e41f0..0e79ca4aaec0 100644
--- a/filter/source/xmlfilterdetect/filterdetect.cxx
+++ b/filter/source/xmlfilterdetect/filterdetect.cxx
@@ -124,7 +124,7 @@ bool isXMLStream(const ::rtl::OString& aHeaderStrm)
::rtl::OUString supportedByType( const ::rtl::OUString clipBoardFormat , const ::rtl::OString resultString, const ::rtl::OUString checkType)
{
::rtl::OUString sTypeName;
- if ( clipBoardFormat.match(OUString(RTL_CONSTASCII_USTRINGPARAM("doctype:"))) )
+ if ( clipBoardFormat.match(OUString("doctype:")) )
{
::rtl::OString tryStr = ::rtl::OUStringToOString(clipBoardFormat.copy(8),RTL_TEXTENCODING_ASCII_US).getStr();
if (resultString.indexOf(tryStr) >= 0)
@@ -189,7 +189,7 @@ bool isXMLStream(const ::rtl::OString& aHeaderStrm)
return ::rtl::OUString();
// test typedetect code
- Reference <XNameAccess> xTypeCont(mxMSF->createInstance(OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.TypeDetection" ))),UNO_QUERY);
+ Reference <XNameAccess> xTypeCont(mxMSF->createInstance(OUString( "com.sun.star.document.TypeDetection" )),UNO_QUERY);
Sequence < ::rtl::OUString > myTypes= xTypeCont->getElementNames();
nLength = myTypes.getLength();
@@ -224,7 +224,7 @@ bool isXMLStream(const ::rtl::OString& aHeaderStrm)
if (location == aArguments.getLength())
{
aArguments.realloc(nLength+1);
- aArguments[location].Name = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TypeName" ));
+ aArguments[location].Name = ::rtl::OUString( "TypeName" );
}
aArguments[location].Value <<=sTypeName;
}