From b95ff314543dd1141c789bc61a3f81306a07bfc9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 21 Jul 2025 23:36:35 +0200 Subject: White space: image_proxy.{cc,h} --- src/lib/image_proxy.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/lib/image_proxy.h') diff --git a/src/lib/image_proxy.h b/src/lib/image_proxy.h index cec13b773..0a94b3615 100644 --- a/src/lib/image_proxy.h +++ b/src/lib/image_proxy.h @@ -63,23 +63,23 @@ namespace cxml { class ImageProxy { public: - ImageProxy () {} - virtual ~ImageProxy () {} + ImageProxy() {} + virtual ~ImageProxy() {} - ImageProxy (ImageProxy const&) = delete; - ImageProxy& operator= (ImageProxy const&) = delete; + ImageProxy(ImageProxy const&) = delete; + 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_) + : image(image_) + , log2_scaling(log2_scaling_) + , error(false) {} - Result (std::shared_ptr image_, int log2_scaling_, bool error_) - : image (image_) - , log2_scaling (log2_scaling_) - , error (error_) + Result(std::shared_ptr image_, int log2_scaling_, bool error_) + : image(image_) + , log2_scaling(log2_scaling_) + , error(error_) {} std::shared_ptr image; @@ -96,25 +96,25 @@ public: * @param size Size that the returned image will be scaled to, in case this * can be used as an optimisation. */ - virtual Result image ( + virtual Result image( Image::Alignment alignment, - boost::optional size = boost::optional () + boost::optional size = boost::optional() ) const = 0; virtual void add_metadata(xmlpp::Element *) const = 0; - virtual void write_to_socket (std::shared_ptr) const = 0; + virtual void write_to_socket(std::shared_ptr) const = 0; /** @return true if our image is definitely the same as another, false if it is probably not */ - virtual bool same (std::shared_ptr) const = 0; + virtual bool same(std::shared_ptr) const = 0; /** Do any useful work that would speed up a subsequent call to ::image(). * This method may be called in a different thread to image(). * @return log2 of any scaling down that will be applied to the image. */ - virtual int prepare (Image::Alignment, boost::optional = boost::optional()) const { return 0; } - virtual size_t memory_used () const = 0; + virtual int prepare(Image::Alignment, boost::optional = boost::optional()) const { return 0; } + virtual size_t memory_used() const = 0; }; -std::shared_ptr image_proxy_factory (std::shared_ptr xml, std::shared_ptr socket); +std::shared_ptr image_proxy_factory(std::shared_ptr xml, std::shared_ptr socket); #endif -- cgit v1.2.3