diff options
Diffstat (limited to 'c++-qt/src/string.cpp')
-rw-r--r-- | c++-qt/src/string.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c++-qt/src/string.cpp b/c++-qt/src/string.cpp index 0b9e4d8..ef23829 100644 --- a/c++-qt/src/string.cpp +++ b/c++-qt/src/string.cpp | |||
@@ -35,6 +35,13 @@ Gats::String::~String() | |||
35 | { | 35 | { |
36 | } | 36 | } |
37 | 37 | ||
38 | Gats::Object *Gats::String::clone() const | ||
39 | { | ||
40 | QByteArray baClone = *this; | ||
41 | baClone.detach(); | ||
42 | return new Gats::String( baClone ); | ||
43 | } | ||
44 | |||
38 | void Gats::String::write( QIODevice &rOut ) const | 45 | void Gats::String::write( QIODevice &rOut ) const |
39 | { | 46 | { |
40 | rOut.write("s", 1 ); | 47 | rOut.write("s", 1 ); |