From a8b8cfe99e42cb0987594f160be11d0c9cc7866e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Jan 2020 21:59:17 +0000 Subject: [PATCH] Make the dynref bool operator constant. --- include/dynref.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dynref.h b/include/dynref.h index 8d55d10aa..2436720aa 100644 --- a/include/dynref.h +++ b/include/dynref.h @@ -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(); }; -- 2.39.5