summaryrefslogtreecommitdiffstats
path: root/xmlhelp/source/cxxhelp/provider/content.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlhelp/source/cxxhelp/provider/content.cxx')
-rw-r--r--xmlhelp/source/cxxhelp/provider/content.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx
index 1dc5347f2d1e..c1dd7486f4dc 100644
--- a/xmlhelp/source/cxxhelp/provider/content.cxx
+++ b/xmlhelp/source/cxxhelp/provider/content.cxx
@@ -230,9 +230,9 @@ uno::Any SAL_CALL Content::execute(
}
uno::Sequence< uno::Any > ret(propertyValues.getLength());
- uno::Sequence< beans::Property > props(getProperties(Environment));
+ const uno::Sequence< beans::Property > props(getProperties(Environment));
// No properties can be set
- std::transform(propertyValues.begin(), propertyValues.end(), ret.begin(),
+ std::transform(std::cbegin(propertyValues), std::cend(propertyValues), ret.begin(),
[&props](const beans::PropertyValue& rPropVal) {
if (std::any_of(props.begin(), props.end(),
[&rPropVal](const beans::Property& rProp) { return rProp.Name == rPropVal.Name; }))