summaryrefslogtreecommitdiff
path: root/framework/source/fwi/uielement/constitemcontainer.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-24 09:22:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-24 14:25:42 +0200
commitd4f9f4b2d57c4f51c026fd114934dd63f4ece13e (patch)
tree6234db12b4029286dbfdb513ad5347450f65641c /framework/source/fwi/uielement/constitemcontainer.cxx
parent9ee96273a2090b63e0f579a1e9c9cef780756e6d (diff)
loplugin:returnconstval in framework
Change-Id: Id3daf68e2daac3ce11117686fdc00831ce1e3a69 Reviewed-on: https://gerrit.libreoffice.org/78051 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/fwi/uielement/constitemcontainer.cxx')
-rw-r--r--framework/source/fwi/uielement/constitemcontainer.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx
index 75121b08ccb8..f33a4085a06e 100644
--- a/framework/source/fwi/uielement/constitemcontainer.cxx
+++ b/framework/source/fwi/uielement/constitemcontainer.cxx
@@ -37,7 +37,6 @@ using namespace com::sun::star::beans;
using namespace com::sun::star::container;
const int PROPHANDLE_UINAME = 1;
-const int PROPCOUNT = 1;
const char PROPNAME_UINAME[] = "UIName";
namespace framework
@@ -266,7 +265,7 @@ Any SAL_CALL ConstItemContainer::getFastPropertyValue( sal_Int32 nHandle )
return ourInfoHelper;
}
-const css::uno::Sequence< css::beans::Property > ConstItemContainer::impl_getStaticPropertyDescriptor()
+css::uno::Sequence< css::beans::Property > ConstItemContainer::impl_getStaticPropertyDescriptor()
{
// Create a property array to initialize sequence!
// Table of all predefined properties of this class. It's used from OPropertySetHelper-class!
@@ -275,16 +274,12 @@ const css::uno::Sequence< css::beans::Property > ConstItemContainer::impl_getSta
// ATTENTION:
// YOU MUST SORT FOLLOW TABLE BY NAME ALPHABETICAL !!!
- const css::beans::Property pProperties[] =
+ return
{
css::beans::Property( PROPNAME_UINAME, PROPHANDLE_UINAME ,
cppu::UnoType<OUString>::get(),
css::beans::PropertyAttribute::TRANSIENT | css::beans::PropertyAttribute::READONLY )
};
- // Use it to initialize sequence!
- const css::uno::Sequence< css::beans::Property > lPropertyDescriptor( pProperties, PROPCOUNT );
- // Return "PropertyDescriptor"
- return lPropertyDescriptor;
}
} // namespace framework