[Spice-devel] [PATCH 03/14] Make DisplayMode setter methods const

Frediano Ziglio fziglio at redhat.com
Thu Sep 1 12:00:45 UTC 2016


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 vdagent/desktop_layout.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/vdagent/desktop_layout.h b/vdagent/desktop_layout.h
index fd6af76..34bec0d 100644
--- a/vdagent/desktop_layout.h
+++ b/vdagent/desktop_layout.h
@@ -34,12 +34,12 @@ public:
         _primary = (pos_x == 0 && pos_y == 0 && attached);
     }
 
-    LONG get_pos_x() { return _pos_x;}
-    LONG get_pos_y() { return _pos_y;}
-    DWORD get_width() { return _width;}
-    DWORD get_height() { return _height;}
-    DWORD get_depth() { return _depth;}
-    bool get_attached() { return _attached;}
+    LONG get_pos_x() const { return _pos_x;}
+    LONG get_pos_y() const { return _pos_y;}
+    DWORD get_width() const { return _width;}
+    DWORD get_height() const { return _height;}
+    DWORD get_depth() const { return _depth;}
+    bool get_attached() const { return _attached;}
     void set_pos(LONG x, LONG y) { _pos_x = x; _pos_y = y;}
     void move_pos(LONG x, LONG y) { _pos_x += x; _pos_y += y;}
     void set_res(DWORD width, DWORD height, DWORD depth);
-- 
2.7.4



More information about the Spice-devel mailing list