From e402a7ed4793b2509d044cbbad76fea9d8102b69 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 30 Aug 2024 13:37:58 +0200 Subject: [PATCH] Window: make several methods `const` --- src/Window.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Window.hxx b/src/Window.hxx index 7616a257..593b9517 100644 --- a/src/Window.hxx +++ b/src/Window.hxx @@ -26,11 +26,11 @@ struct Window { Window(const Window &) = delete; Window &operator=(const Window &) = delete; - void SetBackgroundStyle(Style style) noexcept { + void SetBackgroundStyle(Style style) const noexcept { wbkgd(w, COLOR_PAIR(unsigned(style))); } - void Move(Point p) noexcept { + void Move(Point p) const noexcept { mvwin(w, p.y, p.x); }