[vte/wip/sixels: 39/111] image: paint() has nothing to return, so make it void




commit 3a230d4b166add856a974114eb49639194b41036
Author: Hans Petter Jansson <hpj cl no>
Date:   Sat Aug 8 20:42:48 2020 +0200

    image: paint() has nothing to return, so make it void

 src/image.cc | 4 +---
 src/image.hh | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/image.cc b/src/image.cc
index 18ebc7d4..53115752 100644
--- a/src/image.cc
+++ b/src/image.cc
@@ -38,7 +38,7 @@ Image::contains(const Image &other) const
 }
 
 /* Paint the image with provided cairo context */
-bool
+void
 Image::paint(cairo_t *cr, int offsetx, int offsety)
 {
         cairo_save(cr);
@@ -47,8 +47,6 @@ Image::paint(cairo_t *cr, int offsetx, int offsety)
         cairo_set_source_surface(cr, m_surface.get(), offsetx, offsety);
         cairo_paint(cr);
         cairo_restore(cr);
-
-        return true;
 }
 
 } // namespace image
diff --git a/src/image.hh b/src/image.hh
index fe6f334e..f9b1ea88 100644
--- a/src/image.hh
+++ b/src/image.hh
@@ -60,7 +60,7 @@ public:
                 return cairo_image_surface_get_stride(m_surface.get()) * m_pixelheight;
         }
         bool contains(const Image &other) const;
-        bool paint(cairo_t *cr, gint offsetx, gint offsety);
+        void paint(cairo_t *cr, gint offsetx, gint offsety);
 };
 
 } // namespace image


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]