mirror of https://github.com/odrling/Aegisub
Mark Command::Icon as const
This commit is contained in:
parent
50b70f6979
commit
a7bb608a34
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue