diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-23 22:41:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-24 15:27:28 +0200 |
commit | 892455e72a57d890918f37bd2b32d6c5000ba6ff (patch) | |
tree | a15e0b73f4747a56840f3f457ca786bbbeb759aa /dbaccess | |
parent | 6390d2c52b75b2868d5ee98863a0af4f103c12e5 (diff) |
Simplify uses of comphelper::string::equals with constant argument
Change-Id: I7b12dd04f6811f71b776ee9168703434217b59c8
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/control/FieldDescControl.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/TextConnectionHelper.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index 290c01629563..4a58d0632c9d 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -228,9 +228,9 @@ OUString OFieldDescControl::BoolStringUI(const OUString& rPersistentString) cons if (rPersistentString == aYes || rPersistentString == aNo) return rPersistentString; - if (comphelper::string::equals(rPersistentString, '0')) + if (rPersistentString == "0") return aNo; - if (comphelper::string::equals(rPersistentString, '1')) + if (rPersistentString == "1") return aYes; return ModuleRes(STR_VALUE_NONE).toString(); diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx index 8b43ab4cfe7b..593ad22deb5d 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx @@ -413,7 +413,7 @@ namespace dbaui else { sExtension = m_pOwnExtension->GetText(); - if ( comphelper::string::equals(sExtension.getToken(0,'.'), '*') ) + if ( sExtension.getToken(0,'.') == "*" ) sExtension = sExtension.copy(2); } return sExtension; |