mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-07-23 01:48:52 +00:00
Consistently apply override (and not virtual) to overriding virtuals
Three functions were missing `override`, triggering `-Wsuggest-override` on Clang. Many functions had redundant `virtual ... override`.
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ struct function_state : function_state_base<R, Args...> {
|
||||
function_state_base<R, Args...> *clone() const override {
|
||||
return new function_state(*this);
|
||||
}
|
||||
virtual funbase* as_funbase() override {
|
||||
funbase* as_funbase() override {
|
||||
if(std::is_base_of<funbase, T>::value) return (funbase*) (&t_);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user