cui/source/customize/CustomNotebookbarGenerator.cxx |    2 +-
 cui/source/dialogs/toolbarmodedlg.cxx               |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 158bd4ae5c5fc9a3ab96c46fd20a56bc0d5b81dc
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Wed May 4 14:42:51 2022 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Wed May 4 22:30:09 2022 +0200

    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 <[email protected]>

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();
         };
     }

Reply via email to