diff options
author | Artur Dryomov <artur.dryomov@gmail.com> | 2013-04-16 19:33:24 +0300 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-04-17 10:01:35 +0000 |
commit | b80d8c695e6b6ded231e67ed9a80bcd1f1250c03 (patch) | |
tree | fbd2686e52603d484b12a836db2f8fb33ff79c32 /svx | |
parent | c75eeddfb892918c13a19f7c534b73e423ff8d89 (diff) |
fdo#62096 - replace some O(U)String compareTo with ==
Change-Id: I98d04d7da4c2b7ea0b769df9c2bfa8c1ad86bf2d
Reviewed-on: https://gerrit.libreoffice.org/3422
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/datanavi.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index 82e46e711212..8ec224214b92 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -1368,7 +1368,7 @@ namespace svxform const PropertyValue* pPropsEnd = pProps + _xPropSeq.getLength(); for ( ; pProps != pPropsEnd; ++pProps ) { - if ( sInstModel.compareTo( pProps->Name ) == 0 ) + if ( sInstModel == pProps->Name ) { Reference< css::xml::dom::XNode > xRoot; if ( pProps->Value >>= xRoot ) @@ -1395,9 +1395,9 @@ namespace svxform } } } - else if ( sInstName.compareTo( pProps->Name ) == 0 && ( pProps->Value >>= sTemp ) ) + else if ( sInstName == pProps->Name && ( pProps->Value >>= sTemp ) ) m_sInstanceName = sRet = sTemp; - else if ( sInstURL.compareTo( pProps->Name ) == 0 && ( pProps->Value >>= sTemp ) ) + else if ( sInstURL == pProps->Name && ( pProps->Value >>= sTemp ) ) m_sInstanceURL = sTemp; } @@ -2203,7 +2203,7 @@ namespace svxform const PropertyValue* pPropsEnd = pProps + _xPropSeq.getLength(); for ( ; pProps != pPropsEnd; ++pProps ) { - if ( sID.compareTo( pProps->Name ) == 0 ) + if ( sID == pProps->Name ) { pProps->Value >>= sInstName; break; |