From: cilix42 Date: Wed, 2 Apr 2008 11:21:25 +0000 (+0000) Subject: Make BoolParam usable in boolean expressions directly X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f78fa6719bb65f91ee080ac5705ace201f28def6;p=inkscape.git Make BoolParam usable in boolean expressions directly --- 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&);