diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-11 16:54:49 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-11 16:54:49 +0000 |
commit | ca84516fa80cfca35da7df71ea04423780028212 (patch) | |
tree | b3441beb05e36698d0ed626fe055d0ea048589b3 /libdimensionxx/cameras.cpp | |
parent | a64f9e671936451d7a3a60191dcca6e37e97e585 (diff) | |
download | dimension-ca84516fa80cfca35da7df71ea04423780028212.tar.xz |
Make copy() a non-const method.
Diffstat (limited to 'libdimensionxx/cameras.cpp')
-rw-r--r-- | libdimensionxx/cameras.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimensionxx/cameras.cpp b/libdimensionxx/cameras.cpp index 2c1b69a..ca571be 100644 --- a/libdimensionxx/cameras.cpp +++ b/libdimensionxx/cameras.cpp @@ -55,13 +55,13 @@ namespace Dimension // Shallow-copy this camera Camera* - Perspective_Camera::copy() const + Perspective_Camera::copy() { return new Perspective_Camera(*this); } // Private copy-constructor, for copy() implementation - Perspective_Camera::Perspective_Camera(const Perspective_Camera& camera) + Perspective_Camera::Perspective_Camera(Perspective_Camera& camera) : Camera(camera) { } } |