diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-15 10:19:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-15 10:19:57 +0100 |
commit | 14c1ffe5bd1186589a987135207877ef3214db8d (patch) | |
tree | 792f6e596f3e7ad4389c1c921348dd5170cd3139 /vbahelper/source | |
parent | 514b5d6919bdba95ab31c57920b5a3fd87db0a33 (diff) |
vbahelper: Use appropriate OUString functions on string constants
Change-Id: Iabe3deccf77a79db03909b8ae6ab70322cf0ffba
Diffstat (limited to 'vbahelper/source')
-rw-r--r-- | vbahelper/source/vbahelper/vbacommandbar.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbacommandbarcontrols.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbar.cxx b/vbahelper/source/vbahelper/vbacommandbar.cxx index a491c36c9734..cfab911e058b 100644 --- a/vbahelper/source/vbahelper/vbacommandbar.cxx +++ b/vbahelper/source/vbahelper/vbacommandbar.cxx @@ -50,7 +50,7 @@ ScVbaCommandBar::getName() throw ( uno::RuntimeException, std::exception ) { if( m_bIsMenu ) { - if( m_sResourceUrl.equalsAscii( ITEM_MENUBAR_URL ) ) + if( m_sResourceUrl == ITEM_MENUBAR_URL ) { if( pCBarHelper->getModuleId() == "com.sun.star.sheet.SpreadsheetDocument" ) sName = "Worksheet Menu Bar"; diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx index 7f3ab371e7e1..b01179e2ac56 100644 --- a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx @@ -49,7 +49,7 @@ public: ScVbaCommandBarControls::ScVbaCommandBarControls( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess>& xIndexAccess, VbaCommandBarHelperRef pHelper, const uno::Reference< container::XIndexAccess>& xBarSettings, const OUString& sResourceUrl ) throw (uno::RuntimeException) : CommandBarControls_BASE( xParent, xContext, xIndexAccess ), pCBarHelper( pHelper ), m_xBarSettings( xBarSettings ), m_sResourceUrl( sResourceUrl ) { - m_bIsMenu = sResourceUrl.equalsAscii( ITEM_MENUBAR_URL ) ? sal_True : sal_False; + m_bIsMenu = sResourceUrl == ITEM_MENUBAR_URL; } uno::Sequence< beans::PropertyValue > ScVbaCommandBarControls::CreateMenuItemData( const OUString& sCommandURL, |