diff options
author | Daniel Boles <dboles.src@gmail.com> | 2017-05-31 21:07:57 +0100 |
---|---|---|
committer | Daniel Boles <dboles.src@gmail.com> | 2017-05-31 21:07:57 +0100 |
commit | c47bdacd6215d09efd0b5e70dbb411790e370515 (patch) | |
tree | 19c68ee1db7e066c64b48d4ea9b966d2df105a5d | |
parent | f81107735d04569d6a9bd1bf473980f3ef1f1e01 (diff) | |
download | glibmm-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.h | 2 |
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; |