From 4a2fffe5e62cfc68abb4d1b4c9fc45d8a4b850bb Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Thu, 17 Dec 2020 22:18:57 -0500 Subject: [PATCH] const spam --- simpledisplay.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simpledisplay.d b/simpledisplay.d index 6533178..9eee0fd 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -1908,11 +1908,11 @@ class SimpleWindow : CapableOfHandlingNativeEvent, CapableOfBeingDrawnUpon { /// Width of the window's drawable client area, in pixels. @scriptable - final @property int width() { return _width; } + final @property int width() const pure nothrow @safe @nogc { return _width; } /// Height of the window's drawable client area, in pixels. @scriptable - final @property int height() { return _height; } + final @property int height() const pure nothrow @safe @nogc { return _height; } private int _width; private int _height;