diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-15 00:42:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | c59981ce92898f6be6987f10ebb29161e36e6766 (patch) | |
| tree | a06ac20b947af1f5c96c844052dbd00da60a2c81 /src/lib/image_proxy.h | |
| parent | 00da1e02bb8ebfbc377ad34d9810ef1cd72b9cd0 (diff) | |
Some const correctness.
Diffstat (limited to 'src/lib/image_proxy.h')
| -rw-r--r-- | src/lib/image_proxy.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/image_proxy.h b/src/lib/image_proxy.h index 22946ed98..cf1fb9a2d 100644 --- a/src/lib/image_proxy.h +++ b/src/lib/image_proxy.h @@ -64,7 +64,7 @@ public: ImageProxy& operator= (ImageProxy const&) = delete; struct Result { - Result (std::shared_ptr<Image> image_, int log2_scaling_) + Result (std::shared_ptr<const Image> image_, int log2_scaling_) : image (image_) , log2_scaling (log2_scaling_) , error (false) @@ -76,8 +76,7 @@ public: , error (error_) {} - /** Image (which will be aligned) */ - std::shared_ptr<Image> image; + std::shared_ptr<const Image> image; /** log2 of any scaling down that has already been applied to the image; * e.g. if the image is already half the size of the original, this value * will be 1. |
