diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-09-01 14:23:06 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-09-01 15:09:46 -0400 |
| commit | 1882088834620730520694805954431773142869 (patch) | |
| tree | 6c5b4e05aa6ff6bd0474da282705096945654a37 /json/jsoncpp.cpp | |
| parent | 3a2115bcdcfbca0432afad84f4877187f72514a2 (diff) | |
Make the json exception macro specifiable externally too
Thanks, windows
Diffstat (limited to 'json/jsoncpp.cpp')
| -rw-r--r-- | json/jsoncpp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json/jsoncpp.cpp b/json/jsoncpp.cpp index 307cf560..f6661c6a 100644 --- a/json/jsoncpp.cpp +++ b/json/jsoncpp.cpp @@ -2654,7 +2654,7 @@ static inline void releaseStringValue(char* value, unsigned) { free(value); } namespace Json { // BN: subclass -Exception::Exception(JSONCPP_STRING const& msg) : JSONCPP_EXCEPTION(msg) {} +Exception::Exception(JSONCPP_STRING const& msg) : JSONCPP_EXCEPTION(msg.c_str()) {} Exception::~Exception() JSONCPP_NOEXCEPT {} // BN: removed what() RuntimeError::RuntimeError(JSONCPP_STRING const& msg) : Exception(msg) {} |
