svx/source/fmcomp/gridcell.cxx | 2 +- svx/source/fmcomp/gridctrl.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit b444e459c8a3e39c36e7cf6854bd1eae92b0e81a Author: Janit Anjaria <jani...@gmail.com> Date: Sat Apr 20 01:28:01 2013 +0530 fdo#62096 Replace O(U)String compareTo with == Using grep i figured out all the compareTo() calls and hence replaced it by == operator. diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 29a4ef6..dae1f8d 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -1485,7 +1485,7 @@ CellControllerRef DbFormattedField::CreateController() const //------------------------------------------------------------------------------ void DbFormattedField::_propertyChanged( const PropertyChangeEvent& _rEvent ) throw( RuntimeException ) { - if (_rEvent.PropertyName.compareTo(FM_PROP_FORMATKEY) == COMPARE_EQUAL) + if (_rEvent.PropertyName == FM_PROP_FORMATKEY ) { sal_Int32 nNewKey = _rEvent.NewValue.hasValue() ? ::comphelper::getINT32(_rEvent.NewValue) : 0; m_nKeyType = comphelper::getNumberFormatType(m_xSupplier->getNumberFormats(), nNewKey); diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 8c02049..a34d4f3 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -2770,7 +2770,7 @@ void DbGridControl::DataSourcePropertyChanged(const PropertyChangeEvent& evt) th SolarMutexGuard aGuard; // prop "IsModified" changed ? // during update don't care about the modified state - if (!IsUpdating() && evt.PropertyName.compareTo(FM_PROP_ISMODIFIED) == COMPARE_EQUAL) + if (!IsUpdating() && evt.PropertyName == FM_PROP_ISMODIFIED ) { Reference< XPropertySet > xSource(evt.Source, UNO_QUERY); DBG_ASSERT( xSource.is(), "DbGridControl::DataSourcePropertyChanged: invalid event source!" ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits