summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles.src@gmail.com>2017-05-31 21:07:57 +0100
committerDaniel Boles <dboles.src@gmail.com>2017-05-31 21:07:57 +0100
commitc47bdacd6215d09efd0b5e70dbb411790e370515 (patch)
tree19c68ee1db7e066c64b48d4ea9b966d2df105a5d
parentf81107735d04569d6a9bd1bf473980f3ef1f1e01 (diff)
downloadglibmm-c47bdacd6215d09efd0b5e70dbb411790e370515.tar.gz
RefPtr: Clarify comment about undefined behaviour
Dereferencing a null pointer does not necessarily cause a segfault: it is undefined behaviour, which means anything, or nothing, may happen. Avoid setting an expectation that a segfault will reliably occur here.
-rw-r--r--glib/glibmm/refptr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/glibmm/refptr.h b/glib/glibmm/refptr.h
index 892b6a67..a5970783 100644
--- a/glib/glibmm/refptr.h
+++ b/glib/glibmm/refptr.h
@@ -88,7 +88,7 @@ private:
public:
/** Default constructor
*
- * Afterwards it will be null and use of -> will cause a segmentation fault.
+ * Afterwards it will be null and use of -> will invoke undefined behaviour.
*/
inline RefPtr() noexcept;