summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/ResourceManager.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-10 13:18:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-10 18:42:35 +0200
commitca5c9591ba38ad83415a2d4ced98bfc74d30b032 (patch)
treedcccbec3d99727cffe7debd21d3c40521383857b /sfx2/source/sidebar/ResourceManager.cxx
parente888503ee0aecbce8f3075b106243cf68b8dddc7 (diff)
loplugin:ostr in sfx2
Change-Id: I6306260d03c1208ec250c2f9a3860fa569f6d9c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167448 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar/ResourceManager.cxx')
-rw-r--r--sfx2/source/sidebar/ResourceManager.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx
index 061039415c56..8215e80aee6d 100644
--- a/sfx2/source/sidebar/ResourceManager.cxx
+++ b/sfx2/source/sidebar/ResourceManager.cxx
@@ -234,7 +234,7 @@ const ResourceManager::PanelContextDescriptorContainer& ResourceManager::GetMatc
const OUString& ResourceManager::GetLastActiveDeck( const Context& rContext )
{
if( maLastActiveDecks.find( rContext.msApplication ) == maLastActiveDecks.end())
- return maLastActiveDecks["any"];
+ return maLastActiveDecks[u"any"_ustr];
else
return maLastActiveDecks[rContext.msApplication];
}
@@ -248,7 +248,7 @@ void ResourceManager::ReadDeckList()
{
const utl::OConfigurationTreeRoot aDeckRootNode(
comphelper::getProcessComponentContext(),
- "org.openoffice.Office.UI.Sidebar/Content/DeckList",
+ u"org.openoffice.Office.UI.Sidebar/Content/DeckList"_ustr,
false);
if (!aDeckRootNode.isValid())
return;
@@ -311,7 +311,7 @@ void ResourceManager::SaveDeckSettings(const DeckDescriptor* pDeckDesc)
{
const utl::OConfigurationTreeRoot aDeckRootNode(
comphelper::getProcessComponentContext(),
- "org.openoffice.Office.UI.Sidebar/Content/DeckList",
+ u"org.openoffice.Office.UI.Sidebar/Content/DeckList"_ustr,
true);
if (!aDeckRootNode.isValid())
return;
@@ -350,7 +350,7 @@ void ResourceManager::SaveDeckSettings(const DeckDescriptor* pDeckDesc)
const utl::OConfigurationTreeRoot aPanelRootNode(
comphelper::getProcessComponentContext(),
- "org.openoffice.Office.UI.Sidebar/Content/PanelList",
+ u"org.openoffice.Office.UI.Sidebar/Content/PanelList"_ustr,
true);
if (!aPanelRootNode.isValid())
@@ -415,7 +415,7 @@ void ResourceManager::ReadPanelList()
{
const utl::OConfigurationTreeRoot aPanelRootNode(
comphelper::getProcessComponentContext(),
- "org.openoffice.Office.UI.Sidebar/Content/PanelList",
+ u"org.openoffice.Office.UI.Sidebar/Content/PanelList"_ustr,
false);
if (!aPanelRootNode.isValid())
return;
@@ -685,7 +685,7 @@ void ResourceManager::ReadLegacyAddons (const Reference<frame::XController>& rxC
rDeckDescriptor.msHelpText = rDeckDescriptor.msTitle;
rDeckDescriptor.mbIsEnabled = true;
rDeckDescriptor.mnOrderIndex = 100000 + nReadIndex;
- rDeckDescriptor.maContextList.AddContextDescription(Context(sModuleName, "any"), true, OUString());
+ rDeckDescriptor.maContextList.AddContextDescription(Context(sModuleName, u"any"_ustr), true, OUString());
maPanels.push_back(std::make_shared<PanelDescriptor>());
PanelDescriptor& rPanelDescriptor(*maPanels.back());
@@ -700,7 +700,7 @@ void ResourceManager::ReadLegacyAddons (const Reference<frame::XController>& rxC
rPanelDescriptor.mbShowForReadOnlyDocuments = false;
rPanelDescriptor.mbWantsCanvas = false;
rPanelDescriptor.mbWantsAWT = true;
- rPanelDescriptor.maContextList.AddContextDescription(Context(sModuleName, "any"), true, OUString());
+ rPanelDescriptor.maContextList.AddContextDescription(Context(sModuleName, u"any"_ustr), true, OUString());
}
}
@@ -728,7 +728,7 @@ utl::OConfigurationTreeRoot ResourceManager::GetLegacyAddonRootNode (const OUStr
const Reference<frame::XModuleManager2> xModuleAccess = frame::ModuleManager::create(xContext);
const comphelper::NamedValueCollection aModuleProperties(xModuleAccess->getByName(rsModuleName));
const OUString sWindowStateRef(aModuleProperties.getOrDefault(
- "ooSetupFactoryWindowStateConfigRef",
+ u"ooSetupFactoryWindowStateConfigRef"_ustr,
OUString()));
OUString aPathComposer = "org.openoffice.Office.UI." + sWindowStateRef +