office-gobmx/external/gpgmepp/c++20.patch
Stephan Bergmann fb59553abf external/gpgmepp: Deprecated std::shared_pointer::unique has been removed...
...from C++20, and is no longer provided at least by VS 2019 16.6.4 when using
--with-latest-c++

Change-Id: I1812b4c314febe134a299e42362ca50b495f08d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99081
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-07-20 20:26:43 +02:00

11 lines
251 B
Diff

--- lang/cpp/src/keylistresult.cpp
+++ lang/cpp/src/keylistresult.cpp
@@ -77,7 +77,7 @@
void GpgME::KeyListResult::detach()
{
- if (!d || d.unique()) {
+ if (!d || d.use_count() == 1) {
return;
}
d.reset(new Private(*d));