summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhimajin100000 <himajin100000@gmail.com>2020-05-26 11:34:12 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2020-05-26 16:29:49 +0200
commitce5cd186d44e50985ebe3ff6e3e8b0aa262a6f75 (patch)
tree174702100894d0af12257704d6640d0d8f058a5b
parentef4964a4e598c3c9714cdc18ffa40bcb120dbef6 (diff)
followed the advice from Mike at https://gerrit.libreoffice.org/c/core/+/94687
Change-Id: If961da88f3ecba03416394ab8e8093af1b20f664 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94832 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--cui/source/customize/cfg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index d63f36d33be2..6b2a83d38dc3 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -105,12 +105,12 @@ void printPropertySet(
uno::Reference< beans::XPropertySetInfo > xPropSetInfo =
xPropSet->getPropertySetInfo();
- uno::Sequence< beans::Property > aPropDetails =
+ const uno::Sequence< beans::Property >& aPropDetails =
xPropSetInfo->getProperties();
SAL_WARN("cui", "printPropertySet: " << aPropDetails.getLength() << " properties" );
- for ( beans::Property const & aPropDetail : std::as_const(aPropDetails) )
+ for ( beans::Property const & aPropDetail : aPropDetails )
{
OUString tmp;
sal_Int32 ival;
@@ -136,7 +136,7 @@ void printProperties(
const OUString& prefix,
const uno::Sequence< beans::PropertyValue >& aProp )
{
- for (PropertyValue const & aPropVal : std::as_const(aProp))
+ for (PropertyValue const & aPropVal : aProp)
{
OUString tmp;