diff options
author | Ashish Banerjee <ashish.banerjee10@gmail.com> | 2013-04-03 20:11:54 -0600 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-05 08:57:28 +0000 |
commit | e1f6dac6893e0ad9e1b1f03a3b882cf1e9a08d32 (patch) | |
tree | caa0f6e9a40b163b7a375d39228bbc918687b99c /forms | |
parent | unotools: remove some unused items (diff) | |
download | core-e1f6dac6893e0ad9e1b1f03a3b882cf1e9a08d32.tar.gz core-e1f6dac6893e0ad9e1b1f03a3b882cf1e9a08d32.zip |
Replace `compareTo(...) == 0` with ==
Proposed patch for the following issue:
https://bugs.freedesktop.org/show_bug.cgi?id=62096
Change-Id: Ib83a9051ea12c53642f781e5427a6ca728049a7f
Reviewed-on: https://gerrit.libreoffice.org/3198
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/Edit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/Edit.cxx b/forms/source/component/Edit.cxx index b6e43b54b4c0..81b816c55427 100644 --- a/forms/source/component/Edit.cxx +++ b/forms/source/component/Edit.cxx @@ -584,7 +584,7 @@ void OEditModel::read(const Reference<XObjectInputStream>& _rxInStream) throw ( { Any aDefaultControl = m_xAggregateSet->getPropertyValue(PROPERTY_DEFAULTCONTROL); if ( (aDefaultControl.getValueType().getTypeClass() == TypeClass_STRING) - && (getString(aDefaultControl).compareTo(STARDIV_ONE_FORM_CONTROL_TEXTFIELD) == COMPARE_EQUAL) + && (getString(aDefaultControl) == STARDIV_ONE_FORM_CONTROL_TEXTFIELD ) ) { m_xAggregateSet->setPropertyValue( PROPERTY_DEFAULTCONTROL, makeAny( (::rtl::OUString)STARDIV_ONE_FORM_CONTROL_EDIT ) ); |