Kaydet (Commit) 14c1ffe5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

vbahelper: Use appropriate OUString functions on string constants

Change-Id: Iabe3deccf77a79db03909b8ae6ab70322cf0ffba
üst 514b5d69
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment