fb59553abf
...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>
11 lines
251 B
Diff
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));
|