author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (unidiff) | |
tree | 1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/Queue.h | |
parent | e90847c784c48bd21bf8768cb38edb853b832697 (diff) | |
download | opie-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) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/Queue.h | 10 |
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 | |||
@@ -9,12 +9,4 @@ class CQueue : public CList<T> | |||
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 | }; |