vbahelper: Use appropriate OUString functions on string constants

Change-Id: Iabe3deccf77a79db03909b8ae6ab70322cf0ffba
This commit is contained in:
Stephan Bergmann
2014-12-15 10:19:57 +01:00
parent 514b5d6919
commit 14c1ffe5bd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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";
@@ -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,