From 73342dbb82ba074d01962359dac50fb2aa36cbeb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Nov 2013 15:52:45 +0200 Subject: remove unnecessary RTL_CONSTASCII_STRINGPARAM A final pass through the code, converting code to use the new OUString and OString methods that can detect string literals. Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710 --- editeng/source/xml/xmltxtexp.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'editeng/source/xml') 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 ); -- cgit