]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Make the dynref bool operator constant.
authorSadie Powell <sadie@witchery.services>
Mon, 20 Jan 2020 21:59:17 +0000 (21:59 +0000)
committerSadie Powell <sadie@witchery.services>
Wed, 22 Jan 2020 10:13:06 +0000 (10:13 +0000)
include/dynref.h

index 8d55d10aac2d9be0bebc6f03e670fdd5377aef36..2436720aa3976d934d7e5727b67bcd11ecbaae91 100644 (file)
@@ -52,7 +52,7 @@ class CoreExport dynamic_reference_base : public interfacebase, public insp::int
        void SetCaptureHook(CaptureHook* h) { hook = h; }
 
        void check();
-       operator bool() { return (value != NULL); }
+       operator bool() const { return (value != NULL); }
        static void reset_all();
 };