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/float.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/float.cpp')
-rw-r--r-- | src/float.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/float.cpp b/src/float.cpp index 1b4ebae..c01d824 100644 --- a/src/float.cpp +++ b/src/float.cpp | |||
@@ -20,6 +20,11 @@ Gats::Float::~Float() | |||
20 | { | 20 | { |
21 | } | 21 | } |
22 | 22 | ||
23 | Gats::Object *Gats::Float::clone() const | ||
24 | { | ||
25 | return new Gats::Float( fVal ); | ||
26 | } | ||
27 | |||
23 | void Gats::Float::write( Bu::Stream &rOut ) const | 28 | void Gats::Float::write( Bu::Stream &rOut ) const |
24 | { | 29 | { |
25 | if( fVal == 0.0 ) | 30 | if( fVal == 0.0 ) |