From 5ac26cff397836222eb8d51d866890f96321c601 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 25 Apr 2010 15:57:51 +0000 Subject: Optimizations, removed redundant code, better compatibility with popup+ git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@512 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/popup_history.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'yapp/popup_history.h') diff --git a/yapp/popup_history.h b/yapp/popup_history.h index db48a8c..f79b6ee 100644 --- a/yapp/popup_history.h +++ b/yapp/popup_history.h @@ -52,7 +52,6 @@ struct PopupHistoryData{ }; class PopupHistoryList{ - protected: private: PopupHistoryData *historyData; //historyData[0] - oldest, historyData[size - 1] - newest int count; @@ -67,8 +66,8 @@ class PopupHistoryList{ PopupHistoryList(int renderer = RENDER_DEFAULT); ~PopupHistoryList(); - int GetRenderer(); - void SetRenderer(int newRenderer); + int GetRenderer() { return renderer; } + void SetRenderer(int newRenderer) { renderer = newRenderer; } void Add(char *title, char *message, time_t timestamp); void Add(wchar_t *title, wchar_t *message, time_t timestamp); @@ -76,8 +75,8 @@ class PopupHistoryList{ PopupHistoryData *Get(int index); void Clear(); - int Count(); - int Size(); + int Count() { return count; } + int Size() { return size; } }; /*Shows a history with the last popups. -- cgit v1.2.3