summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unofield.cxx6
-rw-r--r--editeng/source/xml/xmltxtexp.cxx8
2 files changed, 5 insertions, 9 deletions
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index 13699a6d7d13..6ed87334a977 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -912,10 +912,8 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoTextCreateTextField( const OUSt
{
nId = text::textfield::Type::EXTENDED_FILE;
}
- else if (aFieldType.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("docinfo.Title") ) ||
- aFieldType.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("DocInfo.Title") ) )
+ else if (aFieldType == "docinfo.Title" ||
+ aFieldType == "DocInfo.Title" )
{
nId = text::textfield::Type::DOCINFO_TITLE;
}
diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx
index de686b38ea9d..eed1c2cd596e 100644
--- a/editeng/source/xml/xmltxtexp.cxx
+++ b/editeng/source/xml/xmltxtexp.cxx
@@ -226,15 +226,13 @@ SvxSimpleUnoModel::~SvxSimpleUnoModel()
uno::Reference< uno::XInterface > SAL_CALL SvxSimpleUnoModel::createInstance( const OUString& aServiceSpecifier )
throw(uno::Exception, uno::RuntimeException)
{
- if( 0 == aServiceSpecifier.reverseCompareToAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.NumberingRules" ) ) )
+ if( 0 == aServiceSpecifier.reverseCompareTo( "com.sun.star.text.NumberingRules" ) )
{
return uno::Reference< uno::XInterface >(
SvxCreateNumRule(), uno::UNO_QUERY );
}
- if ( (0 == aServiceSpecifier.reverseCompareToAsciiL(
- RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.textfield.DateTime")))
- || (0 == aServiceSpecifier.reverseCompareToAsciiL(
- RTL_CONSTASCII_STRINGPARAM("com.sun.star.text.TextField.DateTime")))
+ if ( (0 == aServiceSpecifier.reverseCompareTo( "com.sun.star.text.textfield.DateTime" ))
+ || (0 == aServiceSpecifier.reverseCompareTo( "com.sun.star.text.TextField.DateTime" ))
)
{
return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::DATE );