summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/objects.cpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-11 16:54:49 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-11 16:54:49 +0000
commitca84516fa80cfca35da7df71ea04423780028212 (patch)
treeb3441beb05e36698d0ed626fe055d0ea048589b3 /libdimensionxx/objects.cpp
parenta64f9e671936451d7a3a60191dcca6e37e97e585 (diff)
downloaddimension-ca84516fa80cfca35da7df71ea04423780028212.tar.xz
Make copy() a non-const method.
Diffstat (limited to 'libdimensionxx/objects.cpp')
-rw-r--r--libdimensionxx/objects.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimensionxx/objects.cpp b/libdimensionxx/objects.cpp
index 6a13b35..2272586 100644
--- a/libdimensionxx/objects.cpp
+++ b/libdimensionxx/objects.cpp
@@ -41,13 +41,13 @@ namespace Dimension
// Shallow copy a sphere
Object*
- Sphere::copy() const
+ Sphere::copy()
{
return new Sphere(*this);
}
// Protected copy constructor
- Sphere::Sphere(const Sphere& sphere)
+ Sphere::Sphere(Sphere& sphere)
: Object(sphere)
{ }
@@ -70,13 +70,13 @@ namespace Dimension
// Shallow copy a cube
Object*
- Cube::copy() const
+ Cube::copy()
{
return new Cube(*this);
}
// Protected copy constructor
- Cube::Cube(const Cube& sphere)
+ Cube::Cube(Cube& sphere)
: Object(sphere)
{ }
}