vbahelper: Use appropriate OUString functions on string constants
Change-Id: Iabe3deccf77a79db03909b8ae6ab70322cf0ffba
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user