Skip to content

Commit 7953be4

Browse files
pbaumanjwpeterson
authored andcommitted
Add override keyword to fparser_ad.hh
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.
1 parent 2b7d112 commit 7953be4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/fparser/fparser_ad.hh

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ protected:
196196

197197
// Exceptions
198198
class UnknownVariable : public std::exception {
199-
virtual const char* what() const throw() { return "Unknown variable"; }
199+
virtual const char* what() const throw() override { return "Unknown variable"; }
200200
} UnknownVariableException;
201201
class UnknownSerializationVersion : public std::exception {
202-
virtual const char* what() const throw() { return "Unknown serialization file version"; }
202+
virtual const char* what() const throw() override { return "Unknown serialization file version"; }
203203
} UnknownSerializationVersionException;
204204
};
205205

0 commit comments

Comments
 (0)