From: Thomas Geymayer Date: Thu, 19 Jun 2014 11:04:21 +0000 (+0200) Subject: canvas::CustomEvent: init bubbles member. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=03d2a166b75f32875a122b79cae9641eb069d7a7;p=simgear.git canvas::CustomEvent: init bubbles member. --- diff --git a/simgear/canvas/events/CustomEvent.cxx b/simgear/canvas/events/CustomEvent.cxx index 3ca8ff18..a85a6efd 100644 --- a/simgear/canvas/events/CustomEvent.cxx +++ b/simgear/canvas/events/CustomEvent.cxx @@ -25,16 +25,20 @@ namespace canvas //---------------------------------------------------------------------------- CustomEvent::CustomEvent( std::string const& type_str, + bool bubbles, StringMap const& data ): - detail(data) + detail(data), + bubbles(bubbles) { type = getOrRegisterType(type_str); } //---------------------------------------------------------------------------- CustomEvent::CustomEvent( int type_id, + bool bubbles, StringMap const& data ): - detail(data) + detail(data), + bubbles(bubbles) { type = type_id; // TypeMap::map_by::type const& type_map = getTypeMap().by(); diff --git a/simgear/canvas/events/CustomEvent.hxx b/simgear/canvas/events/CustomEvent.hxx index cb48becc..1117ba3f 100644 --- a/simgear/canvas/events/CustomEvent.hxx +++ b/simgear/canvas/events/CustomEvent.hxx @@ -39,6 +39,7 @@ namespace canvas * @param data Optional user data stored in event */ CustomEvent( std::string const& type_str, + bool bubbles = false, StringMap const& data = StringMap() ); /** @@ -47,6 +48,7 @@ namespace canvas * @param data Optional user data stored in event */ CustomEvent( int type_id, + bool bubbles = false, StringMap const& data = StringMap() ); /**