From a7bb608a346afde552f6fa2a79f273132064588e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 10 Oct 2012 09:11:21 -0700 Subject: [PATCH] Mark Command::Icon as const --- aegisub/src/command/command.cpp | 2 +- aegisub/src/command/command.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/command/command.cpp b/aegisub/src/command/command.cpp index c69c67230..6dbc8b05e 100644 --- a/aegisub/src/command/command.cpp +++ b/aegisub/src/command/command.cpp @@ -63,7 +63,7 @@ namespace cmd { cmd(c); } - wxBitmap const& Command::Icon(int size) { + wxBitmap const& Command::Icon(int size) const { return icon::get(name(), size); } diff --git a/aegisub/src/command/command.h b/aegisub/src/command/command.h index 008fe805a..d3966b240 100644 --- a/aegisub/src/command/command.h +++ b/aegisub/src/command/command.h @@ -105,7 +105,7 @@ namespace cmd { /// Request icon. /// @param size Icon size. - wxBitmap const& Icon(int size); + wxBitmap const& Icon(int size) const; /// Command function virtual void operator()(agi::Context *c)=0;