Skip to content

Commit

Permalink
Add override keyword to fparser_ad.hh
Browse files Browse the repository at this point in the history
As suggested by GCCs -Wsuggest-override. I'm not sure if we'd
forked fparser or not, but wanted to include this anyway. Can
always cherry-pick it if we want to try and push it upstream
instead.
  • Loading branch information
pbauman authored and jwpeterson committed Aug 2, 2021
1 parent 2b7d112 commit 7953be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/fparser/fparser_ad.hh
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ protected:

// Exceptions
class UnknownVariable : public std::exception {
virtual const char* what() const throw() { return "Unknown variable"; }
virtual const char* what() const throw() override { return "Unknown variable"; }
} UnknownVariableException;
class UnknownSerializationVersion : public std::exception {
virtual const char* what() const throw() { return "Unknown serialization file version"; }
virtual const char* what() const throw() override { return "Unknown serialization file version"; }
} UnknownSerializationVersionException;
};

Expand Down

0 comments on commit 7953be4

Please sign in to comment.