summaryrefslogtreecommitdiff
path: root/include/dynref.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-20 21:59:17 +0000
committerSadie Powell <sadie@witchery.services>2020-01-22 10:13:06 +0000
commita8b8cfe99e42cb0987594f160be11d0c9cc7866e (patch)
treea7d7e1ad65bd3a098402220a9fb6e0d7b8e40eb3 /include/dynref.h
parentc83a670c194ba3c9cf6a1fc7d670414e3dfeaa3e (diff)
Make the dynref bool operator constant.
Diffstat (limited to 'include/dynref.h')
-rw-r--r--include/dynref.h2
1 files changed, 1 insertions, 1 deletions
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();
};