diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-21 10:33:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-21 10:34:04 +0200 |
commit | fe6c124da752c784c8c9578923a0033a77d3c5b3 (patch) | |
tree | abecf6baf859612cd7255d13588ded9d204da690 /svx | |
parent | 5ff8f80a27b08ed6b3c12e354080c6ea1b90b6ee (diff) |
Remove demonstrated-useless comphelper::compare
Change-Id: Ifd1b38afb963255b76f0d821eb46e4c6a972128a
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/form/fmobj.cxx | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 1fc19e5676c6..5f986986b099 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -246,7 +246,7 @@ static const sal_uInt16 ControlMap[] = bool CompareBookmark(const Any& aLeft, const Any& aRight) { - return ::comphelper::compare(aLeft, aRight); + return aLeft == aRight; } class FmXGridSourcePropListener : public ::comphelper::OPropertyChangeListener diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 759d753907d0..4246ca47e4fb 100644 --- a/svx/source/form/fmobj.cxx +++ b/svx/source/form/fmobj.cxx @@ -497,9 +497,9 @@ Reference< XInterface > FmFormObj::ensureModelEnv(const Reference< XInterface > { // it is a form try { - if ( ::comphelper::compare(xCurrentSourceForm->getPropertyValue(FM_PROP_COMMAND), aSrcCursorSource) - && ::comphelper::compare(xCurrentSourceForm->getPropertyValue(FM_PROP_COMMANDTYPE), aSrcCursorSourceType) - && ::comphelper::compare(xCurrentSourceForm->getPropertyValue(FM_PROP_DATASOURCE), aSrcDataSource) + if ( xCurrentSourceForm->getPropertyValue(FM_PROP_COMMAND) == aSrcCursorSource + && xCurrentSourceForm->getPropertyValue(FM_PROP_COMMANDTYPE) == aSrcCursorSourceType + && xCurrentSourceForm->getPropertyValue(FM_PROP_DATASOURCE) == aSrcDataSource ) { bEqualDSS = true; @@ -528,9 +528,9 @@ Reference< XInterface > FmFormObj::ensureModelEnv(const Reference< XInterface > { // it is a form try { - if ( ::comphelper::compare(xCurrentDestForm->getPropertyValue(FM_PROP_COMMAND), aSrcCursorSource) - && ::comphelper::compare(xCurrentDestForm->getPropertyValue(FM_PROP_COMMANDTYPE), aSrcCursorSourceType) - && ::comphelper::compare(xCurrentDestForm->getPropertyValue(FM_PROP_DATASOURCE), aSrcDataSource) + if ( xCurrentDestForm->getPropertyValue(FM_PROP_COMMAND) == aSrcCursorSource + && xCurrentDestForm->getPropertyValue(FM_PROP_COMMANDTYPE) == aSrcCursorSourceType + && xCurrentDestForm->getPropertyValue(FM_PROP_DATASOURCE) == aSrcDataSource ) { bEqualDSS = true; |