summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-04 14:42:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-04 22:30:09 +0200
commit158bd4ae5c5fc9a3ab96c46fd20a56bc0d5b81dc (patch)
tree7321debd5fef8d72394b7665abbff562b09af2bf /cui
parent1f110bf567bc5ea85d19a5a4d273ac072f8aaced (diff)
Just use Any ctor instead of makeAny in cui
Change-Id: Ibc76372e161a579df60c2265a4727b619e4a0b63 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133830 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/CustomNotebookbarGenerator.cxx2
-rw-r--r--cui/source/dialogs/toolbarmodedlg.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/customize/CustomNotebookbarGenerator.cxx b/cui/source/customize/CustomNotebookbarGenerator.cxx
index 392ea3e37a4e..c601d051ea11 100644
--- a/cui/source/customize/CustomNotebookbarGenerator.cxx
+++ b/cui/source/customize/CustomNotebookbarGenerator.cxx
@@ -266,7 +266,7 @@ void CustomNotebookbarGenerator::setCustomizedUIItem(Sequence<OUString> sUIItemP
const utl::OConfigurationNode aModesNode = aAppNode.openNode("Modes");
const utl::OConfigurationNode aModeNode(aModesNode.openNode(sNotebookbarConfigType));
- css::uno::Any aUIItemProperties(makeAny(sUIItemProperties));
+ css::uno::Any aUIItemProperties(sUIItemProperties);
aModeNode.setNodeValue("UIItemProperties", aUIItemProperties);
aAppNode.commit();
}
diff --git a/cui/source/dialogs/toolbarmodedlg.cxx b/cui/source/dialogs/toolbarmodedlg.cxx
index 3d3594e8cde9..5ca568adf576 100644
--- a/cui/source/dialogs/toolbarmodedlg.cxx
+++ b/cui/source/dialogs/toolbarmodedlg.cxx
@@ -197,13 +197,13 @@ IMPL_LINK(ToolbarmodeDialog, OnApplyClick, weld::Button&, rButton, void)
const utl::OConfigurationTreeRoot aAppNode(
xContext, "org.openoffice.Office.UI.ToolbarMode/Applications/", true);
if (sCurrentApp != "Writer")
- aAppNode.setNodeValue("Writer/Active", css::uno::makeAny(sCmd));
+ aAppNode.setNodeValue("Writer/Active", css::uno::Any(sCmd));
if (sCurrentApp != "Calc")
- aAppNode.setNodeValue("Calc/Active", css::uno::makeAny(sCmd));
+ aAppNode.setNodeValue("Calc/Active", css::uno::Any(sCmd));
if (sCurrentApp != "Impress")
- aAppNode.setNodeValue("Impress/Active", css::uno::makeAny(sCmd));
+ aAppNode.setNodeValue("Impress/Active", css::uno::Any(sCmd));
if (sCurrentApp != "Draw")
- aAppNode.setNodeValue("Draw/Active", css::uno::makeAny(sCmd));
+ aAppNode.setNodeValue("Draw/Active", css::uno::Any(sCmd));
aAppNode.commit();
};
}