From f78fa6719bb65f91ee080ac5705ace201f28def6 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Wed, 2 Apr 2008 11:21:25 +0000 Subject: [PATCH] Make BoolParam usable in boolean expressions directly --- src/live_effects/parameter/bool.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/live_effects/parameter/bool.h b/src/live_effects/parameter/bool.h index 400f8cc47..3bf839af8 100644 --- a/src/live_effects/parameter/bool.h +++ b/src/live_effects/parameter/bool.h @@ -38,6 +38,9 @@ public: bool get_value() { return value; }; + inline operator bool() + { return value; }; + private: BoolParam(const BoolParam&); BoolParam& operator=(const BoolParam&); -- 2.30.2