summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/objects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdimensionxx/objects.cpp')
-rw-r--r--libdimensionxx/objects.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libdimensionxx/objects.cpp b/libdimensionxx/objects.cpp
index 7bedd92..fffa3c4 100644
--- a/libdimensionxx/objects.cpp
+++ b/libdimensionxx/objects.cpp
@@ -33,13 +33,13 @@ namespace Dimension
// Shallow copy a sphere
Object*
- Sphere::copy()
+ Sphere::copy() const
{
return new Sphere(*this);
}
// Protected copy constructor
- Sphere::Sphere(Sphere& sphere)
+ Sphere::Sphere(const Sphere& sphere)
: Object(sphere)
{ }
@@ -54,13 +54,13 @@ namespace Dimension
// Shallow copy a cube
Object*
- Cube::copy()
+ Cube::copy() const
{
return new Cube(*this);
}
// Protected copy constructor
- Cube::Cube(Cube& sphere)
- : Object(sphere)
+ Cube::Cube(const Cube& cube)
+ : Object(cube)
{ }
}