diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-04-06 06:16:33 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-04-06 06:16:33 +0000 |
commit | fba73219e3c7bf65b459a3303f579fd83c8fd0af (patch) | |
tree | 7de25030a1ef0e5899da243c2fb5c0e4900c0a49 /src/integer.cpp | |
parent | b01618b1be4831d30dbf8706a48e71c62d617b99 (diff) | |
download | libgats-fba73219e3c7bf65b459a3303f579fd83c8fd0af.tar.gz libgats-fba73219e3c7bf65b459a3303f579fd83c8fd0af.tar.bz2 libgats-fba73219e3c7bf65b459a3303f579fd83c8fd0af.tar.xz libgats-fba73219e3c7bf65b459a3303f579fd83c8fd0af.zip |
Everything supports clone now.
Diffstat (limited to 'src/integer.cpp')
-rw-r--r-- | src/integer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/integer.cpp b/src/integer.cpp index 2a713e3..e89ac1d 100644 --- a/src/integer.cpp +++ b/src/integer.cpp | |||
@@ -16,6 +16,11 @@ Gats::Integer::~Integer() | |||
16 | { | 16 | { |
17 | } | 17 | } |
18 | 18 | ||
19 | Gats::Object *Gats::Integer::clone() const | ||
20 | { | ||
21 | return new Gats::Integer( iVal ); | ||
22 | } | ||
23 | |||
19 | void Gats::Integer::write( Bu::Stream &rOut ) const | 24 | void Gats::Integer::write( Bu::Stream &rOut ) const |
20 | { | 25 | { |
21 | rOut.write("i", 1 ); | 26 | rOut.write("i", 1 ); |