summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-09 12:51:35 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-12-09 16:50:46 +0000
commitee107cd95b4e449391da5f1fe9246682bcf1e6ce (patch)
tree24e2e6e2dcdfc86045f2a3a5dea7a28a0afb0fc3 /toolkit
parent8351eb25302a28c70ef5b2aaa1189db949dcf443 (diff)
fix equalsAscii conversion. Noticed in fdo#72391
In commit 363cc397172f2b0a94d9c4dc44fc8d95072795a3 "convert equalsAsciiL calls to startWith calls where possible" I incorrectly converted equalsAsciiL calls to startsWith calls. This commit fixes those places to use the == OUString operator. Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6 Reviewed-on: https://gerrit.libreoffice.org/7008 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx2
-rw-r--r--toolkit/source/controls/unocontrol.cxx14
2 files changed, 8 insertions, 8 deletions
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index 5e0bdb201a6c..163085b26961 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -599,7 +599,7 @@ void UnoDialogControl::ImplModelPropertiesChanged( const Sequence< PropertyChang
const PropertyChangeEvent& rEvt = rEvents.getConstArray()[i];
Reference< XControlModel > xModel( rEvt.Source, UNO_QUERY );
sal_Bool bOwnModel = (XControlModel*)xModel.get() == (XControlModel*)getModel().get();
- if ( bOwnModel && rEvt.PropertyName.startsWith( "ImageURL" ))
+ if ( bOwnModel && rEvt.PropertyName == "ImageURL" )
{
OUString aImageURL;
Reference< graphic::XGraphic > xGraphic;
diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx
index bf34bec5d964..b1d8a5d03166 100644
--- a/toolkit/source/controls/unocontrol.cxx
+++ b/toolkit/source/controls/unocontrol.cxx
@@ -269,12 +269,12 @@ void UnoControl::ImplSetPeerProperty( const OUString& rPropName, const Any& rVal
{
// We now support a mapping for language dependent properties. This is the
// central method to implement it.
- if (( rPropName.startsWith( "Text" )) ||
- ( rPropName.startsWith( "Label" )) ||
- ( rPropName.startsWith( "Title" )) ||
- ( rPropName.startsWith( "HelpText" )) ||
- ( rPropName.startsWith( "CurrencySymbol" )) ||
- ( rPropName.startsWith( "StringItemList" )) )
+ if( rPropName == "Text" ||
+ rPropName == "Label" ||
+ rPropName == "Title" ||
+ rPropName == "HelpText" ||
+ rPropName == "CurrencySymbol" ||
+ rPropName == "StringItemList" )
{
OUString aValue;
uno::Sequence< OUString > aSeqValue;
@@ -505,7 +505,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
// Detect changes on our resource resolver which invalidates
// automatically some language dependent properties.
- if ( pEvents->PropertyName.startsWith( "ResourceResolver" ))
+ if ( pEvents->PropertyName == "ResourceResolver" )
{
Reference< resource::XStringResourceResolver > xStrResolver;
if ( pEvents->NewValue >>= xStrResolver )