summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx/objects.hpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-16 01:16:23 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-16 01:16:23 +0000
commitc3619e541564d5133a3ccdaeb79588d37d46a3db (patch)
treeeede3c86f47098080fe206b84dbb6b59aa0e6a21 /libdimensionxx/dimensionxx/objects.hpp
parent00997fa54c64b53618255b1e292d3db4d18b86af (diff)
downloaddimension-c3619e541564d5133a3ccdaeb79588d37d46a3db.tar.xz
Make copy() a 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 15c072b..6f7cce0 100644
--- a/libdimensionxx/dimensionxx/objects.hpp
+++ b/libdimensionxx/dimensionxx/objects.hpp
@@ -33,11 +33,11 @@ namespace Dimension
// ~Sphere();
// Shallow-copy the sphere
- Object* copy();
+ Object* copy() const;
private:
// Copying prohibited, but used internally
- Sphere(Sphere& sphere);
+ Sphere(const Sphere& sphere);
Sphere& operator=(const Sphere&);
};
@@ -49,11 +49,11 @@ namespace Dimension
// ~Cube();
// Shallow-copy the cube
- Object* copy();
+ Object* copy() const;
private:
// Copying prohibited, but used internally
- Cube(Cube& cube);
+ Cube(const Cube& cube);
Cube& operator=(const Cube&);
};
}