mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Make TableKeyNotDefinedException::what() const noexcept.
This commit is contained in:
@@ -21,7 +21,7 @@ class TableKeyNotDefinedException : public std::exception {
|
||||
*/
|
||||
TableKeyNotDefinedException(llvm::StringRef key);
|
||||
~TableKeyNotDefinedException() noexcept;
|
||||
const char* what();
|
||||
const char* what() const noexcept override;
|
||||
|
||||
private:
|
||||
std::string msg;
|
||||
|
||||
@@ -12,6 +12,8 @@ TableKeyNotDefinedException::TableKeyNotDefinedException(llvm::StringRef key)
|
||||
msg += key;
|
||||
}
|
||||
|
||||
const char* TableKeyNotDefinedException::what() { return msg.c_str(); }
|
||||
const char* TableKeyNotDefinedException::what() const noexcept {
|
||||
return msg.c_str();
|
||||
}
|
||||
|
||||
TableKeyNotDefinedException::~TableKeyNotDefinedException() noexcept {}
|
||||
|
||||
Reference in New Issue
Block a user