瀏覽代碼

enforce const get_properties()

David Rose 18 年之前
父節點
當前提交
4a60803a77
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      panda/src/display/graphicsWindow.cxx
  2. 2 2
      panda/src/display/graphicsWindow.h

+ 2 - 2
panda/src/display/graphicsWindow.cxx

@@ -87,7 +87,7 @@ GraphicsWindow::
 //       Access: Published
 //  Description: Returns the current properties of the window.
 ////////////////////////////////////////////////////////////////////
-WindowProperties GraphicsWindow::
+const WindowProperties GraphicsWindow::
 get_properties() const {
   WindowProperties result;
   {
@@ -105,7 +105,7 @@ get_properties() const {
 //               applied to the window (if valid) at the next
 //               execution of process_events().
 ////////////////////////////////////////////////////////////////////
-WindowProperties GraphicsWindow::
+const WindowProperties GraphicsWindow::
 get_requested_properties() const {
   WindowProperties result;
   {

+ 2 - 2
panda/src/display/graphicsWindow.h

@@ -51,8 +51,8 @@ protected:
 PUBLISHED:
   virtual ~GraphicsWindow();
 
-  WindowProperties get_properties() const;
-  WindowProperties get_requested_properties() const;
+  const WindowProperties get_properties() const;
+  const WindowProperties get_requested_properties() const;
   void clear_rejected_properties();
   WindowProperties get_rejected_properties() const;
   void request_properties(const WindowProperties &requested_properties);