summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx/objects.hpp
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/dimensionxx/objects.hpp
parenta64f9e671936451d7a3a60191dcca6e37e97e585 (diff)
downloaddimension-ca84516fa80cfca35da7df71ea04423780028212.tar.xz
Make copy() a non-const method.
Diffstat (limited to 'libdimensionxx/dimensionxx/objects.hpp')
-rw-r--r--libdimensionxx/dimensionxx/objects.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimensionxx/dimensionxx/objects.hpp b/libdimensionxx/dimensionxx/objects.hpp
index f9c20af..f86b2b3 100644
--- a/libdimensionxx/dimensionxx/objects.hpp
+++ b/libdimensionxx/dimensionxx/objects.hpp
@@ -33,11 +33,11 @@ namespace Dimension
~Sphere();
// Shallow-copy the sphere
- Object* copy() const;
+ Object* copy();
private:
// Copying prohibited, but used internally
- Sphere(const Sphere& sphere);
+ Sphere(Sphere& sphere);
Sphere& operator=(const Sphere&);
};
@@ -49,11 +49,11 @@ namespace Dimension
~Cube();
// Shallow-copy the cube
- Object* copy() const;
+ Object* copy();
private:
// Copying prohibited, but used internally
- Cube(const Cube& cube);
+ Cube(Cube& cube);
Cube& operator=(const Cube&);
};
}