diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-11-18 14:24:41 -0800 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-11-18 14:24:41 -0800 |
commit | dd9f2ca5f555d529d8f8b6168115ca3d3155fac7 (patch) | |
tree | 5c73fc1f5275df0c5546f2bc1dc85e0f4e83e40f /indra/newview/llsearchhistory.h | |
parent | becfbd2b8295e3007fe151cd9b69d0af139040e2 (diff) | |
parent | a27706ad2e42718ad107e25fe7c29f1c0513fabc (diff) |
Merge from product-engine
Diffstat (limited to 'indra/newview/llsearchhistory.h')
-rw-r--r-- | indra/newview/llsearchhistory.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llsearchhistory.h b/indra/newview/llsearchhistory.h index 253ef21e9e..eb6efdb86f 100644 --- a/indra/newview/llsearchhistory.h +++ b/indra/newview/llsearchhistory.h @@ -34,12 +34,15 @@ #define LL_LLSEARCHHISTORY_H #include "llsingleton.h" +#include "llui.h" + /** * Search history container able to save and load history from file. * History is stored in chronological order, most recent at the beginning. */ -class LLSearchHistory : public LLSingleton<LLSearchHistory> +class LLSearchHistory : public LLSingleton<LLSearchHistory>, private LLDestroyClass<LLSearchHistory> { + friend class LLDestroyClass<LLSearchHistory>; public: // Forward declaration @@ -130,6 +133,12 @@ protected: private: + // Implementation of LLDestroyClass<LLSearchHistory> + static void destroyClass() + { + LLSearchHistory::getInstance()->save(); + } + search_history_list_t mSearchHistory; }; |