use Json::RuntimeError

This commit is contained in:
Christopher Dunn
2015-03-08 12:43:18 -05:00
parent 9376368d86
commit 2250b3c29d
4 changed files with 7 additions and 10 deletions

View File

@@ -88,7 +88,7 @@ static inline char* duplicateStringValue(const char* value,
char* newString = static_cast<char*>(malloc(length + 1));
if (newString == NULL) {
throw std::runtime_error(
throwRuntimeError(
"in Json::Value::duplicateStringValue(): "
"Failed to allocate string value buffer");
}
@@ -111,7 +111,7 @@ static inline char* duplicateAndPrefixStringValue(
unsigned actualLength = length + sizeof(unsigned) + 1U;
char* newString = static_cast<char*>(malloc(actualLength));
if (newString == 0) {
throw std::runtime_error(
throwRuntimeError(
"in Json::Value::duplicateAndPrefixStringValue(): "
"Failed to allocate string value buffer");
}