Kaydet (Commit) 12d51ad7 authored tarafından Miklos Vajna's avatar Miklos Vajna

vcl: loplugin:passstuffbyref

Change-Id: I4ad2b77112a2c9bfbf76f0b84275d88046ed3851
üst f54a384f
...@@ -107,7 +107,7 @@ public: ...@@ -107,7 +107,7 @@ public:
static void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition); static void reorderWithinParent(vcl::Window &rWindow, sal_uInt16 nNewPosition);
/// Get label of the command (like of .uno:Save) from the description service /// 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<css::uno::XComponentContext>& rContext, const css::uno::Reference<css::uno::XComponentContext>& rContext,
const OUString& rModuleId); const OUString& rModuleId);
......
...@@ -2168,7 +2168,7 @@ void VclBuilder::reorderWithinParent(std::vector<vcl::Window*>& rChilds, bool bI ...@@ -2168,7 +2168,7 @@ void VclBuilder::reorderWithinParent(std::vector<vcl::Window*>& rChilds, bool bI
} }
} }
OUString VclBuilder::getCommandProperty(const OUString aProperty, const OUString& rCommand, OUString VclBuilder::getCommandProperty(const OUString& rProperty, const OUString& rCommand,
const uno::Reference<uno::XComponentContext>& rContext, const OUString& rModuleId) const uno::Reference<uno::XComponentContext>& rContext, const OUString& rModuleId)
{ {
if (rCommand.isEmpty()) if (rCommand.isEmpty())
...@@ -2186,7 +2186,7 @@ OUString VclBuilder::getCommandProperty(const OUString aProperty, const OUString ...@@ -2186,7 +2186,7 @@ OUString VclBuilder::getCommandProperty(const OUString aProperty, const OUString
{ {
for ( sal_Int32 i = 0; i < aProperties.getLength(); i++ ) for ( sal_Int32 i = 0; i < aProperties.getLength(); i++ )
{ {
if (aProperties[i].Name == aProperty) if (aProperties[i].Name == rProperty)
{ {
OUString aLabel; OUString aLabel;
if (aProperties[i].Value >>= aLabel) if (aProperties[i].Value >>= aLabel)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment