From ca84516fa80cfca35da7df71ea04423780028212 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 11 Jul 2009 16:54:49 +0000 Subject: Make copy() a non-const method. --- libdimensionxx/dimensionxx/objects.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libdimensionxx/dimensionxx/objects.hpp') 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&); }; } -- cgit v1.2.3