Added const modifiers where applicable.

This commit is contained in:
Maciej Suminski 2013-09-10 14:31:52 +02:00
parent 5659dd479e
commit 082f3f9bb4
1 changed files with 6 additions and 6 deletions

View File

@ -108,9 +108,9 @@ public:
} }
// Accessors: // Accessors:
int GetPenWidth() { return m_penWidth; } int GetPenWidth() const { return m_penWidth; }
const wxPoint& GetStart() { return m_start; } const wxPoint& GetStart() const { return m_start; }
const wxPoint& GetEnd() { return m_end; } const wxPoint& GetEnd() const { return m_end; }
/** The function to draw a WS_DRAW_ITEM_LINE /** The function to draw a WS_DRAW_ITEM_LINE
*/ */
@ -158,9 +158,9 @@ public:
} }
// Accessors: // Accessors:
int GetPenWidth() { return m_penWidth; } int GetPenWidth() const { return m_penWidth; }
bool IsFilled() { return m_fill; } bool IsFilled() const { return m_fill; }
const wxPoint& GetPosition() { return m_pos; } const wxPoint& GetPosition() const { return m_pos; }
/** The function to draw a WS_DRAW_ITEM_POLYGON /** The function to draw a WS_DRAW_ITEM_POLYGON
*/ */