diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-10 23:00:44 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-10 23:01:07 +0900 |
commit | 2b1758a2dc82200468905f7865468972a691b6a3 (patch) | |
tree | c6f43ff867ccd1f73b86ea8ad8f88429d16807e7 /framework | |
parent | 05720546215976d8d42fa7321f455c641147db9f (diff) |
Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) to equalsAscii(...)
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index 9d5771d307c8..8b8d86fe8968 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -782,7 +782,7 @@ bool ToolbarLayoutManager::dockAllToolbars() UIElementVector::iterator pIter; for ( pIter = m_aUIElements.begin(); pIter != m_aUIElements.end(); ++pIter ) { - if ( pIter->m_aType.equalsAscii( "toolbar" ) && pIter->m_xUIElement.is() && + if ( pIter->m_aType.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("toolbar")) && pIter->m_xUIElement.is() && pIter->m_bFloating && pIter->m_bVisible ) aToolBarNameVector.push_back( pIter->m_aName ); } @@ -1191,9 +1191,9 @@ void ToolbarLayoutManager::implts_createCustomToolBars( const uno::Sequence< uno ::rtl::OUString aTbxTitle; for ( sal_Int32 j = 0; j < rTbxSeq.getLength(); j++ ) { - if ( rTbxSeq[j].Name.equalsAscii( "ResourceURL" )) + if ( rTbxSeq[j].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ResourceURL"))) rTbxSeq[j].Value >>= aTbxResName; - else if ( rTbxSeq[j].Name.equalsAscii( "UIName" )) + else if ( rTbxSeq[j].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("UIName"))) rTbxSeq[j].Value >>= aTbxTitle; } |