summaryrefslogtreecommitdiffstats
path: root/external/gpgmepp/c++20.patch
blob: 3141dca1ea704cc8804c3cdb9296d46c92878fcc (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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));