diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-02-09 14:56:31 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-02-09 14:56:31 -0300 |
commit | e32686c10a4f4fe7c34b181845220b5c491f32fb (patch) | |
tree | c090052c311a3a1732d03dc17fe357f97437b397 /lout/container.hh | |
parent | 74f64426001a693759e47963f99965e0e6ee847d (diff) |
whitespace cleanup: 's/ +$//g'
Diffstat (limited to 'lout/container.hh')
-rw-r--r-- | lout/container.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lout/container.hh b/lout/container.hh index 26803e23..52c5019f 100644 --- a/lout/container.hh +++ b/lout/container.hh @@ -20,7 +20,7 @@ namespace lout { namespace container { /** - * \brief The container classes defined here contain instances of + * \brief The container classes defined here contain instances of * object::Object. * * Different sub-classes may be mixed, and you have to care about casting, @@ -44,13 +44,13 @@ protected: { private: int refcount; - + public: AbstractIterator() { refcount = 1; } - + void ref () { refcount++; } void unref () { refcount--; if (refcount == 0) delete this; } - + virtual bool hasNext () = 0; virtual Object *getNext () = 0; }; @@ -60,7 +60,7 @@ protected: }; /** - * \brief This is a small wrapper for AbstractIterator, which may be used + * \brief This is a small wrapper for AbstractIterator, which may be used * directly, not as a pointer, to makes memory management simpler. */ class Iterator @@ -271,7 +271,7 @@ protected: public: Stack (bool ownerOfObjects); ~Stack(); - + void push (object::Object *object); void pushUnder (object::Object *object); inline object::Object *getTop () { return top ? top->object : NULL; } @@ -421,7 +421,7 @@ public: inline Stack (bool ownerOfObjects) { this->base = new untyped::Stack (ownerOfObjects); } ~Stack() { delete this->base; } - + inline void push (T *object) { ((untyped::Stack*)this->base)->push (object); } inline void pushUnder (T *object) |