diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-22 11:13:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-22 11:23:05 +0200 |
commit | fc87d57f04132658e1c3481e92fe36e1183423ed (patch) | |
tree | 473a9dd4861e878cdc6e49f394b298df8732c3a3 /editeng | |
parent | cdb1981b2d33571b986376e77955045417a46aad (diff) |
replace OUString::reverseCompareTo("xxx") with operator==
operator== with OUString and literal internally does a reverse-compare
(via OUString::equalsAsciiL) anyway, so no need to keep explicit calls
to OUString::reverseCompareTo with literal argument
Change-Id: I799d9bcd0d5c308a9547ce7cacb2db6042fdb643
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/xml/xmltxtexp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx index eed1c2cd596e..6d3523c9ab19 100644 --- a/editeng/source/xml/xmltxtexp.cxx +++ b/editeng/source/xml/xmltxtexp.cxx @@ -226,13 +226,13 @@ SvxSimpleUnoModel::~SvxSimpleUnoModel() uno::Reference< uno::XInterface > SAL_CALL SvxSimpleUnoModel::createInstance( const OUString& aServiceSpecifier ) throw(uno::Exception, uno::RuntimeException) { - if( 0 == aServiceSpecifier.reverseCompareTo( "com.sun.star.text.NumberingRules" ) ) + if( aServiceSpecifier == "com.sun.star.text.NumberingRules" ) { return uno::Reference< uno::XInterface >( SvxCreateNumRule(), uno::UNO_QUERY ); } - if ( (0 == aServiceSpecifier.reverseCompareTo( "com.sun.star.text.textfield.DateTime" )) - || (0 == aServiceSpecifier.reverseCompareTo( "com.sun.star.text.TextField.DateTime" )) + if ( aServiceSpecifier == "com.sun.star.text.textfield.DateTime" + || aServiceSpecifier == "com.sun.star.text.TextField.DateTime" ) { return (::cppu::OWeakObject * )new SvxUnoTextField( text::textfield::Type::DATE ); |