mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Improve const correctness.
See https://usfirst.collab.net/sf/tracker/do/viewArtifact/projects.wpilib/tracker.4_defects/artf4148 Change-Id: I47b0d5a91fd49e47e2c7348b0705e998ec815682
This commit is contained in:
@@ -36,7 +36,7 @@ public:
|
||||
|
||||
TableKeyExistsWithDifferentTypeException(const std::string existingKey, NetworkTableEntryType* existingType, const char* message);
|
||||
|
||||
const char* what(){return "TableKeyExistsWithDifferentTypeException";};
|
||||
const char* what() const noexcept {return "TableKeyExistsWithDifferentTypeException";};
|
||||
|
||||
virtual ~TableKeyExistsWithDifferentTypeException() throw ();
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ class BadMessageException : public std::exception
|
||||
public:
|
||||
BadMessageException(const char* message);
|
||||
~BadMessageException() throw ();
|
||||
const char* what();
|
||||
const char* what() const noexcept;
|
||||
private:
|
||||
std::string message;
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
*
|
||||
* @return The message associated with this exception.
|
||||
*/
|
||||
const char* what();
|
||||
const char* what() const noexcept;
|
||||
|
||||
/**
|
||||
* Determines whether this exception indicates that an EOF
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
class IllegalStateException : public std::exception{
|
||||
public:
|
||||
IllegalStateException(const char* message);
|
||||
const char* what(){return message.c_str();};
|
||||
const char* what() const noexcept {return message.c_str();};
|
||||
~IllegalStateException() throw ();
|
||||
private:
|
||||
std::string message;
|
||||
|
||||
Reference in New Issue
Block a user