summaryrefslogtreecommitdiff
path: root/framework/source/uielement/uicommanddescription.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-08 11:58:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-08 17:18:51 +0200
commit4f5f24a4a3dac22e0f2c0d4832e0cbdd566263b9 (patch)
tree9a6078551b0d89df314cc384336d94178b8c459f /framework/source/uielement/uicommanddescription.cxx
parent22dd422f7ccf7a1ce4dc7fe5b274263a55e464c7 (diff)
loplugin:ostr in framework
Change-Id: I2fdc32aa5de6a1315fe69997f9b531259aa78605 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167339 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/uielement/uicommanddescription.cxx')
-rw-r--r--framework/source/uielement/uicommanddescription.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx
index 0b8bad8ccdfa..ddbe692233c3 100644
--- a/framework/source/uielement/uicommanddescription.cxx
+++ b/framework/source/uielement/uicommanddescription.cxx
@@ -164,7 +164,7 @@ ConfigurationAccess_UICommand::ConfigurationAccess_UICommand( std::u16string_vie
OUString::Concat(CONFIGURATION_ROOT_ACCESS) + aModuleName + "/UserInterface/Commands"),
m_aConfigPopupAccess(
OUString::Concat(CONFIGURATION_ROOT_ACCESS) + aModuleName + "/UserInterface/Popups"),
- m_aPropProperties( "Properties" ),
+ m_aPropProperties( u"Properties"_ustr ),
m_xGenericUICommands( rGenericUICommands ),
m_xConfigProvider( theDefaultProvider::get( rxContext ) ),
m_bConfigAccessInitialized( false ),
@@ -311,12 +311,12 @@ void ConfigurationAccess_UICommand::impl_fill(const Reference< XNameAccess >& _x
CmdToInfoMap aCmdToInfo;
aCmdToInfo.bPopup = _bPopup;
- xNameAccess->getByName( "Label" ) >>= aCmdToInfo.aLabel;
- xNameAccess->getByName( "ContextLabel" ) >>= aCmdToInfo.aContextLabel;
- xNameAccess->getByName( "PopupLabel" ) >>= aCmdToInfo.aPopupLabel;
- xNameAccess->getByName( "TooltipLabel" ) >>= aCmdToInfo.aTooltipLabel;
- xNameAccess->getByName( "TargetURL" ) >>= aCmdToInfo.aTargetURL;
- xNameAccess->getByName( "IsExperimental" ) >>= aCmdToInfo.bIsExperimental;
+ xNameAccess->getByName( u"Label"_ustr ) >>= aCmdToInfo.aLabel;
+ xNameAccess->getByName( u"ContextLabel"_ustr ) >>= aCmdToInfo.aContextLabel;
+ xNameAccess->getByName( u"PopupLabel"_ustr ) >>= aCmdToInfo.aPopupLabel;
+ xNameAccess->getByName( u"TooltipLabel"_ustr ) >>= aCmdToInfo.aTooltipLabel;
+ xNameAccess->getByName( u"TargetURL"_ustr ) >>= aCmdToInfo.aTargetURL;
+ xNameAccess->getByName( u"IsExperimental"_ustr ) >>= aCmdToInfo.bIsExperimental;
xNameAccess->getByName( m_aPropProperties ) >>= aCmdToInfo.nProperties;
m_aCmdInfoCache.emplace( aNameSeq[i], aCmdToInfo );
@@ -484,7 +484,7 @@ void ConfigurationAccess_UICommand::initializeConfigAccess()
{"nodepath", Any(m_aConfigCmdAccess)}
}));
m_xConfigAccess.set( m_xConfigProvider->createInstanceWithArguments(
- "com.sun.star.configuration.ConfigurationAccess", aArgs ),UNO_QUERY );
+ u"com.sun.star.configuration.ConfigurationAccess"_ustr, aArgs ),UNO_QUERY );
if ( m_xConfigAccess.is() )
{
// Add as container listener
@@ -501,7 +501,7 @@ void ConfigurationAccess_UICommand::initializeConfigAccess()
{"nodepath", Any(m_aConfigPopupAccess)}
}));
m_xConfigAccessPopups.set( m_xConfigProvider->createInstanceWithArguments(
- "com.sun.star.configuration.ConfigurationAccess", aArgs2 ),UNO_QUERY );
+ u"com.sun.star.configuration.ConfigurationAccess"_ustr, aArgs2 ),UNO_QUERY );
if ( m_xConfigAccessPopups.is() )
{
// Add as container listener
@@ -585,7 +585,7 @@ UICommandDescription::UICommandDescription(const Reference< XComponentContext >&
// insert generic commands
auto& rMap = m_aUICommandsHashMap[rCurrentLanguage];
- UICommandsHashMap::iterator pIter = rMap.find( "GenericCommands" );
+ UICommandsHashMap::iterator pIter = rMap.find( u"GenericCommands"_ustr );
if ( pIter != rMap.end() )
pIter->second = m_xGenericUICommands[rCurrentLanguage];
}