summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorSteven Harrison (steven) <steven@lindenlab.com>2019-05-17 16:49:58 +0000
committerSteven Harrison (steven) <steven@lindenlab.com>2019-05-17 16:49:58 +0000
commit771e6344fe5852f9d67df7476e6658d2d3facd73 (patch)
tree80401553637251e6fd598a72f95a0d38f02db859 /indra/llcommon
parent59c93cb861a3cc5ef766ec27f82e7c82fe17f54b (diff)
parente31f4a352d2dfdcc4ccb1be459382054e354f085 (diff)
Pull from viewer-bear and merge
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llevents.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/llcommon/llevents.h b/indra/llcommon/llevents.h
index 5d60c63810..62d97007ac 100644
--- a/indra/llcommon/llevents.h
+++ b/indra/llcommon/llevents.h
@@ -582,11 +582,12 @@ public:
/// Generate a distinct name for a listener -- see listen()
static std::string inventName(const std::string& pfx="listener");
-private:
- friend class LLEventPumps;
/// flush queued events
virtual void flush() {}
+private:
+ friend class LLEventPumps;
+
virtual void reset();
@@ -675,12 +676,14 @@ public:
virtual ~LLEventMailDrop() {}
/// Post an event to all listeners
- virtual bool post(const LLSD& event);
+ virtual bool post(const LLSD& event) override;
+ /// Remove any history stored in the mail drop.
+ virtual void flush() override { mEventHistory.clear(); LLEventStream::flush(); };
protected:
virtual LLBoundListener listen_impl(const std::string& name, const LLEventListener&,
const NameList& after,
- const NameList& before);
+ const NameList& before) override;
private:
typedef std::list<LLSD> EventList;
@@ -703,7 +706,6 @@ public:
/// Post an event to all listeners
virtual bool post(const LLSD& event);
-private:
/// flush queued events
virtual void flush();