summaryrefslogtreecommitdiff
path: root/vcl/source/helper
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2015-11-17 15:47:25 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2015-11-18 10:12:21 +0100
commitcb4177b5f6d2c63548fa544a19b36001c57193e4 (patch)
treefbbdf193c68954db838871fde030637dde8e6807 /vcl/source/helper
parent5a4d508bd6711def27c7738f7ac68c2da478e48c (diff)
Remove unused toolbaritem properties
The following properties have been removed: toolbar:bitmap toolbar:property toolbar:width toolbar:userdefined This should have no impact on existing functionality or AddOns, since these properties were not in use. Change-Id: I07574f8102648ee0713379be8cb0b605d2c76364
Diffstat (limited to 'vcl/source/helper')
-rw-r--r--vcl/source/helper/commandinfoprovider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx
index b04cff3827ae..5ef6f099bd5b 100644
--- a/vcl/source/helper/commandinfoprovider.cxx
+++ b/vcl/source/helper/commandinfoprovider.cxx
@@ -250,17 +250,17 @@ sal_Int32 CommandInfoProvider::GetPropertiesForCommand (
{
SetFrame(rxFrame);
+ sal_Int32 nValue = 0;
const Sequence<beans::PropertyValue> aProperties (GetCommandProperties(rsCommandName));
for (sal_Int32 nIndex=0; nIndex<aProperties.getLength(); ++nIndex)
{
if (aProperties[nIndex].Name == "Properties")
{
- sal_Int32 nValue = 0;
aProperties[nIndex].Value >>= nValue;
- return nValue;
+ break;
}
}
- return 0;
+ return nValue;
}
void CommandInfoProvider::SetFrame (const Reference<frame::XFrame>& rxFrame)