diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-21 23:39:45 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-21 23:39:45 +0200 |
| commit | 7511fa9bb8d8b39d11f687dd55193d3e554a0874 (patch) | |
| tree | 3c6ba0b8fc9fcca4cb9c3b9a16d79e5c48e45fe5 | |
| parent | d932b6c3dde3481af9464a0796dd7230f4a977e2 (diff) | |
Cleanup: use a default variable to remove a constructor.
| -rw-r--r-- | src/lib/image_proxy.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/image_proxy.h b/src/lib/image_proxy.h index 36ef2feee..cb41646f5 100644 --- a/src/lib/image_proxy.h +++ b/src/lib/image_proxy.h @@ -70,13 +70,7 @@ public: ImageProxy& operator=(ImageProxy const&) = delete; struct Result { - Result(std::shared_ptr<const Image> image_, int log2_scaling_) - : image(image_) - , log2_scaling(log2_scaling_) - , error(false) - {} - - Result(std::shared_ptr<const Image> image_, int log2_scaling_, bool error_) + Result(std::shared_ptr<const Image> image_, int log2_scaling_, bool error_ = false) : image(image_) , log2_scaling(log2_scaling_) , error(error_) |
