diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx index fee454591a6f..485bbe8375cb 100644 --- a/include/vcl/builder.hxx +++ b/include/vcl/builder.hxx @@ -107,7 +107,7 @@ public: static void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition); /// Get label of the command (like of .uno:Save) from the description service - static OUString getCommandProperty(const OUString aProperty, const OUString& rCommand, + static OUString getCommandProperty(const OUString& rProperty, const OUString& rCommand, const css::uno::Reference& rContext, const OUString& rModuleId); diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 626327f90868..40174d5ed1a5 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -2168,7 +2168,7 @@ void VclBuilder::reorderWithinParent(std::vector& rChilds, bool bI } } -OUString VclBuilder::getCommandProperty(const OUString aProperty, const OUString& rCommand, +OUString VclBuilder::getCommandProperty(const OUString& rProperty, const OUString& rCommand, const uno::Reference& rContext, const OUString& rModuleId) { if (rCommand.isEmpty()) @@ -2186,7 +2186,7 @@ OUString VclBuilder::getCommandProperty(const OUString aProperty, const OUString { for ( sal_Int32 i = 0; i < aProperties.getLength(); i++ ) { - if (aProperties[i].Name == aProperty) + if (aProperties[i].Name == rProperty) { OUString aLabel; if (aProperties[i].Value >>= aLabel)