summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/Queue.h
authorpohly <pohly>2004-08-24 20:52:45 (UTC)
committer pohly <pohly>2004-08-24 20:52:45 (UTC)
commit73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (unidiff)
tree1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/Queue.h
parente90847c784c48bd21bf8768cb38edb853b832697 (diff)
downloadopie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip
opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz
opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2
updated source to opie-reader 0.7g
Diffstat (limited to 'noncore/apps/opie-reader/Queue.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/Queue.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/noncore/apps/opie-reader/Queue.h b/noncore/apps/opie-reader/Queue.h
index f1bd4b4..321042e 100644
--- a/noncore/apps/opie-reader/Queue.h
+++ b/noncore/apps/opie-reader/Queue.h
@@ -4,18 +4,10 @@
4#include "my_list.h" 4#include "my_list.h"
5 5
6template<class T> 6template<class T>
7class CQueue : public CList<T> 7class CQueue : public CList<T>
8{ 8{
9 public: 9 public:
10 bool empty() { return (front == NULL); } 10 bool empty() { return (CList<T>::front == NULL); }
11 void push(const T& t) { push_back(t); } 11 void push(const T& t) { push_back(t); }
12 T pop()
13 {
14 T data = front->data;
15 node* n = front;
16 front = front->next;
17 delete n;
18 return data;
19 }
20}; 12};
21#endif 13#endif