diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 05:41:38 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 05:42:05 +0100 |
commit | 19020191cbf3e3c7a7bf98d0958d86d931ae687b (patch) | |
tree | 63533a5d8d9929602cd894391a0e4b232451ba69 /editeng | |
parent | 9c34ac28d6b7a8297674f4334c43d93a064f3f3d (diff) |
simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/unofield.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx index b33da6beaa22..eee7c6e1d234 100644 --- a/editeng/source/uno/unofield.cxx +++ b/editeng/source/uno/unofield.cxx @@ -886,8 +886,8 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoTextCreateTextField( const ::rt // fixed since OOo 3.2 but for compatibility we will still provide support for the wrong notation. const OUString aTextFieldPrexit2( "com.sun.star.text.TextField." ); - if( (ServiceSpecifier.compareTo( aTextFieldPrexit, aTextFieldPrexit.getLength() ) == 0) || - (ServiceSpecifier.compareTo( aTextFieldPrexit2, aTextFieldPrexit2.getLength() ) == 0) ) + if( (ServiceSpecifier == aTextFieldPrexit) || + (ServiceSpecifier == aTextFieldPrexit2) ) { OUString aFieldType( ServiceSpecifier.copy( aTextFieldPrexit.getLength() ) ); |