[vte/wip/sixels: 30/82] image: Fix accessor declarations



commit b4a51bade166458877675ef5ee2bebaeed0a7149
Author: Hans Petter Jansson <hpj cl no>
Date:   Wed Jun 3 21:48:32 2020 +0200

    image: Fix accessor declarations

 src/image.hh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/image.hh b/src/image.hh
index f9b1ea88..d733fe16 100644
--- a/src/image.hh
+++ b/src/image.hh
@@ -53,14 +53,14 @@ public:
         {
         }
 
-        constexpr auto const get_left() const noexcept { return m_left; }
-        constexpr auto const get_top() const noexcept { return m_top; }
-        constexpr auto const get_bottom() const noexcept { return m_top + m_height - 1; }
-        auto const resource_size() const noexcept {
+        inline constexpr auto get_left() const noexcept { return m_left; }
+        inline constexpr auto get_top() const noexcept { return m_top; }
+        inline constexpr auto get_bottom() const noexcept { return m_top + m_height - 1; }
+        inline auto resource_size() const noexcept {
                 return cairo_image_surface_get_stride(m_surface.get()) * m_pixelheight;
         }
-        bool contains(const Image &other) const;
-        void paint(cairo_t *cr, gint offsetx, gint offsety);
+        bool contains(const Image &other) const noexcept;
+        void paint(cairo_t *cr, gint offsetx, gint offsety) const noexcept;
 };
 
 } // namespace image


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