diff options
| author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-05-24 02:28:40 +0300 |
|---|---|---|
| committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-05-24 02:28:40 +0300 |
| commit | 65175e0767f96f3fc2d6c632b5f34896d7b33230 (patch) | |
| tree | e92b5e56d84b0a9d34fed67eaca93e7cb1e6fbc4 /indra/llcommon | |
| parent | 93f0023efad59c6f86ee8003e3a22f1102ad28e8 (diff) | |
| parent | 2672194b1d3eb03648861a29e57d81a38f527746 (diff) | |
Merged in lindenlab/viewer-release
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/llevents.h | 12 |
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(); |
