summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2020-03-12 11:01:55 +0100
committerVasily Melenchuk <vasily.melenchuk@cib.de>2020-12-05 19:21:16 +0300
commit7a4292aff39fccb307d8739bfe5963860bcf20f5 (patch)
treefcc1ce8f4c919e1504496e92eb7a876f652ab5cb /comphelper
parentbfe54d8b90f711a52a46b4d79a0756362e19eeb1 (diff)
comphelper: fix build against CentOS6 baseline
Change-Id: Ice8a27dc92c923b3d2c62a6989e13720ff044749
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/docpasswordhelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx
index 79c0e9a6b66a..dfc408690027 100644
--- a/comphelper/source/misc/docpasswordhelper.cxx
+++ b/comphelper/source/misc/docpasswordhelper.cxx
@@ -517,11 +517,11 @@ OUString DocPasswordHelper::GetOoxHashAsBase64(
if (eResult == DocPasswordVerifierResult::OK && !aPassword.isEmpty())
{
- if (std::find_if(std::cbegin(aEncData), std::cend(aEncData),
+ if (std::find_if(aEncData.begin(), aEncData.end(),
[](const css::beans::NamedValue& val) {
return val.Name == PACKAGE_ENCRYPTIONDATA_SHA256UTF8;
})
- == std::cend(aEncData))
+ == aEncData.end())
{
// tdf#118639: We need ODF encryption data for autorecovery, where password
// will already be unavailable, so generate and append it here