From 7511fa9bb8d8b39d11f687dd55193d3e554a0874 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 21 Jul 2025 23:39:45 +0200 Subject: Cleanup: use a default variable to remove a constructor. --- src/lib/image_proxy.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') 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 image_, int log2_scaling_) - : image(image_) - , log2_scaling(log2_scaling_) - , error(false) - {} - - Result(std::shared_ptr image_, int log2_scaling_, bool error_) + Result(std::shared_ptr image_, int log2_scaling_, bool error_ = false) : image(image_) , log2_scaling(log2_scaling_) , error(error_) -- cgit v1.2.3