summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp/gridcell.cxx
diff options
context:
space:
mode:
authorJanit Anjaria <janit92@gmail.com>2013-04-20 01:28:01 +0530
committerEike Rathke <erack@redhat.com>2013-04-19 22:37:53 +0200
commitb444e459c8a3e39c36e7cf6854bd1eae92b0e81a (patch)
treeaad06ea6f5dfdc5a9093a0d982f57166f522c298 /svx/source/fmcomp/gridcell.cxx
parentf51450717d4e639bd8af81c7d1ed13cc08e57e22 (diff)
fdo#62096 Replace O(U)String compareTo with ==
Using grep i figured out all the compareTo() calls and hence replaced it by == operator.
Diffstat (limited to 'svx/source/fmcomp/gridcell.cxx')
-rw-r--r--svx/source/fmcomp/gridcell.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 29a4ef641731..dae1f8ddd0f7 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);