From a158742c0231b348b4663b9900e7da95e05cde48 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 13 Mar 2010 21:22:03 +0000 Subject: Adding const to methods where possible. --- src/XPM.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/XPM.h') diff --git a/src/XPM.h b/src/XPM.h index 91aa4a8bd..71970a6b5 100644 --- a/src/XPM.h +++ b/src/XPM.h @@ -43,9 +43,9 @@ public: void Draw(Surface *surface, PRectangle &rc); char **InLinesForm() { return lines; } void SetId(int pid_) { pid = pid_; } - int GetId() { return pid; } - int GetHeight() { return height; } - int GetWidth() { return width; } + int GetId() const { return pid; } + int GetHeight() const { return height; } + int GetWidth() const { return width; } static const char **LinesFormFromTextForm(const char *textForm); }; -- cgit v1.2.3