diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-16 01:16:23 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-16 01:16:23 +0000 |
commit | c3619e541564d5133a3ccdaeb79588d37d46a3db (patch) | |
tree | eede3c86f47098080fe206b84dbb6b59aa0e6a21 /libdimensionxx/dimensionxx/cameras.hpp | |
parent | 00997fa54c64b53618255b1e292d3db4d18b86af (diff) | |
download | dimension-c3619e541564d5133a3ccdaeb79588d37d46a3db.tar.xz |
Make copy() a const method.
Diffstat (limited to 'libdimensionxx/dimensionxx/cameras.hpp')
-rw-r--r-- | libdimensionxx/dimensionxx/cameras.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimensionxx/dimensionxx/cameras.hpp b/libdimensionxx/dimensionxx/cameras.hpp index 364ea4c..ea08535 100644 --- a/libdimensionxx/dimensionxx/cameras.hpp +++ b/libdimensionxx/dimensionxx/cameras.hpp @@ -37,11 +37,11 @@ namespace Dimension void trans(const Matrix& trans); // Shallow-copy the camera - Camera* copy(); + Camera* copy() const; private: // Copying prohibited, but used internally - Perspective_Camera(Perspective_Camera& camera); + Perspective_Camera(const Perspective_Camera& camera); Perspective_Camera& operator=(const Perspective_Camera&); }; } |