Mark Command::Icon as const

This commit is contained in:
Thomas Goyne 2012-10-10 09:11:21 -07:00
parent 50b70f6979
commit a7bb608a34
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;