summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/cameras.cpp
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/cameras.cpp
parent00997fa54c64b53618255b1e292d3db4d18b86af (diff)
downloaddimension-c3619e541564d5133a3ccdaeb79588d37d46a3db.tar.xz
Make copy() a const method.
Diffstat (limited to 'libdimensionxx/cameras.cpp')
-rw-r--r--libdimensionxx/cameras.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimensionxx/cameras.cpp b/libdimensionxx/cameras.cpp
index 5d84c4f..f9f8302 100644
--- a/libdimensionxx/cameras.cpp
+++ b/libdimensionxx/cameras.cpp
@@ -47,13 +47,13 @@ namespace Dimension
// Shallow-copy this camera
Camera*
- Perspective_Camera::copy()
+ Perspective_Camera::copy() const
{
return new Perspective_Camera(*this);
}
// Private copy-constructor, for copy() implementation
- Perspective_Camera::Perspective_Camera(Perspective_Camera& camera)
+ Perspective_Camera::Perspective_Camera(const Perspective_Camera& camera)
: Camera(camera)
{ }
}