diff options
Diffstat (limited to 'xmlhelp/source/cxxhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/content.cxx | 4 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 6 |
3 files changed, 6 insertions, 6 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; })) diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 37eb36b78d43..b5ca5ade2d11 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -1156,7 +1156,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetHelpPackageFromP OUString aHelpMediaType( "application/vnd.sun.star.help" ); if( xPackage->isBundle() ) { - Sequence< Reference< deployment::XPackage > > aPkgSeq = xPackage->getBundle + const Sequence< Reference< deployment::XPackage > > aPkgSeq = xPackage->getBundle ( Reference<task::XAbortChannel>(), Reference<ucb::XCommandEnvironment>() ); auto pSubPkg = std::find_if(aPkgSeq.begin(), aPkgSeq.end(), [&aHelpMediaType](const Reference< deployment::XPackage >& xSubPkg) { diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx index ddb982985c65..b1f6219af4b7 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx @@ -368,16 +368,16 @@ public: beans::Property SAL_CALL getPropertyByName( const OUString& aName ) override { - auto pProp = std::find_if(m_aSeq.begin(), m_aSeq.end(), + auto pProp = std::find_if(std::cbegin(m_aSeq), std::cend(m_aSeq), [&aName](const beans::Property& rProp) { return aName == rProp.Name; }); - if (pProp != m_aSeq.end()) + if (pProp != std::cend(m_aSeq)) return *pProp; throw beans::UnknownPropertyException(aName); } sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override { - return std::any_of(m_aSeq.begin(), m_aSeq.end(), + return std::any_of(std::cbegin(m_aSeq), std::cend(m_aSeq), [&Name](const beans::Property& rProp) { return Name == rProp.Name; }); } |