aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/dictionary.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c++-qt/src/dictionary.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/c++-qt/src/dictionary.cpp b/c++-qt/src/dictionary.cpp
index ad4759a..edcbdb1 100644
--- a/c++-qt/src/dictionary.cpp
+++ b/c++-qt/src/dictionary.cpp
@@ -18,6 +18,20 @@ Gats::Dictionary::~Dictionary()
18 } 18 }
19} 19}
20 20
21Gats::Object *Gats::Dictionary::clone() const
22{
23 Gats::Dictionary *pClone = new Gats::Dictionary;
24
25 for( const_iterator i = begin(); i != end(); i++ )
26 {
27 QByteArray bKey = i.key();
28 bKey.detach();
29 pClone->insert( bKey, (*i)->clone() );
30 }
31
32 return pClone;
33}
34
21void Gats::Dictionary::write( QIODevice &rOut ) const 35void Gats::Dictionary::write( QIODevice &rOut ) const
22{ 36{
23 rOut.write("d", 1 ); 37 rOut.write("d", 1 );