aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++-qt/src/list.cpp')
-rw-r--r--c++-qt/src/list.cpp12
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
21Gats::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
21void Gats::List::write( QIODevice &rOut ) const 33void Gats::List::write( QIODevice &rOut ) const
22{ 34{
23 rOut.write("l", 1 ); 35 rOut.write("l", 1 );