From 61e99fec986469d2c2ab7fefafb3c7216729a049 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 2 Apr 2008 11:21:25 +0000 Subject: Make BoolParam usable in boolean expressions directly (bzr r5309) --- src/live_effects/parameter/bool.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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&); -- cgit v1.2.3