summaryrefslogtreecommitdiff
path: root/glib/glibmm.h
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-12-11 20:57:37 +0100
committerMurray Cumming <murrayc@murrayc.com>2017-04-07 11:03:50 +0200
commit650453a800e6c3ad0c934ce2675298a7d90cc6b8 (patch)
tree4f153fa22af19dfb08f5af3899f6b0115228b3f9 /glib/glibmm.h
parentff390b28885f8fdea3bb8094570d943640519d64 (diff)
downloadglibmm-650453a800e6c3ad0c934ce2675298a7d90cc6b8.tar.gz
Remove Glib::WeakRef
Now that RefPtr is really a std::shared_ptr<>, we should use std::weak_ref<> instead. Note that a std::weak_ptr<> tells you nothing about whether the underlying GObject is still alive, which Glib::RefPtr did. It just tells you whether our std::shared_ptr<> still holds a reference to it. That's why I removed one of the checks in tests/giomm_listmodel/main.cc.
Diffstat (limited to 'glib/glibmm.h')
-rw-r--r--glib/glibmm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/glib/glibmm.h b/glib/glibmm.h
index 1b2b2dba..a9e90e02 100644
--- a/glib/glibmm.h
+++ b/glib/glibmm.h
@@ -140,7 +140,6 @@
#include <glibmm/variantiter.h>
#include <glibmm/varianttype.h>
#include <glibmm/vectorutils.h>
-#include <glibmm/weakref.h>
#include <glibmm/wrap.h>
#endif /* _GLIBMM_H */