diff options
Diffstat (limited to 'c++-qt/src/list.cpp')
-rw-r--r-- | c++-qt/src/list.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/c++-qt/src/list.cpp b/c++-qt/src/list.cpp index 59e1770..8a648e9 100644 --- a/c++-qt/src/list.cpp +++ b/c++-qt/src/list.cpp | |||
@@ -18,6 +18,18 @@ Gats::List::~List() | |||
18 | } | 18 | } |
19 | } | 19 | } |
20 | 20 | ||
21 | Gats::Object *Gats::List::clone() const | ||
22 | { | ||
23 | Gats::List *pClone = new Gats::List; | ||
24 | |||
25 | for( const_iterator i = begin(); i != end(); i++ ) | ||
26 | { | ||
27 | pClone->append( (*i)->clone() ); | ||
28 | } | ||
29 | |||
30 | return pClone; | ||
31 | } | ||
32 | |||
21 | void Gats::List::write( QIODevice &rOut ) const | 33 | void Gats::List::write( QIODevice &rOut ) const |
22 | { | 34 | { |
23 | rOut.write("l", 1 ); | 35 | rOut.write("l", 1 ); |