diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-03-12 11:01:55 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-06-08 22:25:21 +0200 |
commit | 5d33338e933b877128432077e18841f412f75c4b (patch) | |
tree | e42d98ed40032bb867de3c967fedd7de333333ef | |
parent | 68e3167b3f1cd6923d58fd8c03225a7667aca8b9 (diff) |
comphelper: fix build against CentOS6 baselinedistro/lhm/libreoffice-5-2+backports
Change-Id: Ice8a27dc92c923b3d2c62a6989e13720ff044749
(cherry picked from commit 25e7d4a47171ec68202269a8f94fae002b7715c9)
-rw-r--r-- | comphelper/source/misc/docpasswordhelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx index 660ce8aea89c..2b52c1400f60 100644 --- a/comphelper/source/misc/docpasswordhelper.cxx +++ b/comphelper/source/misc/docpasswordhelper.cxx @@ -451,11 +451,11 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( 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 |