summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx/object.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/object.hpp
parent00997fa54c64b53618255b1e292d3db4d18b86af (diff)
downloaddimension-c3619e541564d5133a3ccdaeb79588d37d46a3db.tar.xz
Make copy() a const method.
Diffstat (limited to 'libdimensionxx/dimensionxx/object.hpp')
-rw-r--r--libdimensionxx/dimensionxx/object.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimensionxx/dimensionxx/object.hpp b/libdimensionxx/dimensionxx/object.hpp
index 6505162..c661fa8 100644
--- a/libdimensionxx/dimensionxx/object.hpp
+++ b/libdimensionxx/dimensionxx/object.hpp
@@ -41,7 +41,7 @@ namespace Dimension
virtual bool inside(const Vector& point);
// Shallow-copy a derived object
- virtual Object* copy() = 0;
+ virtual Object* copy() const = 0;
// Access the wrapped C object
dmnsn_object* dmnsn();
@@ -51,7 +51,7 @@ namespace Dimension
// No-op
Object();
// Shallow copy
- Object(Object& object);
+ Object(const Object& object);
// Wrap an existing object.
explicit Object(dmnsn_object* object);