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);
|
cmd(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBitmap const& Command::Icon(int size) {
|
wxBitmap const& Command::Icon(int size) const {
|
||||||
return icon::get(name(), size);
|
return icon::get(name(), size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ namespace cmd {
|
||||||
|
|
||||||
/// Request icon.
|
/// Request icon.
|
||||||
/// @param size Icon size.
|
/// @param size Icon size.
|
||||||
wxBitmap const& Icon(int size);
|
wxBitmap const& Icon(int size) const;
|
||||||
|
|
||||||
/// Command function
|
/// Command function
|
||||||
virtual void operator()(agi::Context *c)=0;
|
virtual void operator()(agi::Context *c)=0;
|
||||||
|
|
Loading…
Reference in New Issue