diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 13:22:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-18 14:12:24 +0100 |
commit | 17fe6b54cdc6a71e324bf83421f22eb2954089a1 (patch) | |
tree | 14caa9552943ba2e3a9e3af266b582ec6b3c3246 /dbaccess/source/ui/browser/brwctrlr.cxx | |
parent | cui: Use appropriate OUString functions on string constants (diff) | |
download | core-17fe6b54cdc6a71e324bf83421f22eb2954089a1.tar.gz core-17fe6b54cdc6a71e324bf83421f22eb2954089a1.zip |
dbaccess: Use appropriate OUString functions on string constants
Change-Id: I1d63c9123ad985cb3424b0ac0ad30c12e39f8170
Diffstat (limited to 'dbaccess/source/ui/browser/brwctrlr.cxx')
-rw-r--r-- | dbaccess/source/ui/browser/brwctrlr.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index ae53681d9b35..6f0532958e43 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -1076,7 +1076,7 @@ void SbaXDataBrowserController::propertyChange(const PropertyChangeEvent& evt) t SolarMutexGuard aGuard; // the IsModified changed to sal_False ? - if ( (evt.PropertyName.equals(PROPERTY_ISMODIFIED)) + if ( evt.PropertyName == PROPERTY_ISMODIFIED && !::comphelper::getBOOL(evt.NewValue) ) { // -> the current field isn't modified anymore, too @@ -1084,7 +1084,7 @@ void SbaXDataBrowserController::propertyChange(const PropertyChangeEvent& evt) t } // switching to a new record ? - if ( (evt.PropertyName.equals(PROPERTY_ISNEW)) + if ( evt.PropertyName == PROPERTY_ISNEW && ::comphelper::getBOOL(evt.NewValue) ) { @@ -1094,21 +1094,21 @@ void SbaXDataBrowserController::propertyChange(const PropertyChangeEvent& evt) t InvalidateAll(); } - if (evt.PropertyName.equals(PROPERTY_FILTER)) + if (evt.PropertyName == PROPERTY_FILTER) { InvalidateFeature(ID_BROWSER_REMOVEFILTER); } - else if (evt.PropertyName.equals(PROPERTY_HAVING_CLAUSE)) + else if (evt.PropertyName == PROPERTY_HAVING_CLAUSE) { InvalidateFeature(ID_BROWSER_REMOVEFILTER); } - else if (evt.PropertyName.equals(PROPERTY_ORDER)) + else if (evt.PropertyName == PROPERTY_ORDER) { InvalidateFeature(ID_BROWSER_REMOVEFILTER); } // a new record count ? -> may be our search availability has changed - if (evt.PropertyName.equals(PROPERTY_ROWCOUNT)) + if (evt.PropertyName == PROPERTY_ROWCOUNT) { sal_Int32 nNewValue = 0, nOldValue = 0; evt.NewValue >>= nNewValue; |