summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/Queue.h
Unidiff
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
@@ -7,15 +7,7 @@ template<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