mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-27 11:21:02 +08:00
Ran clang-format again.
This commit is contained in:
parent
445328ace6
commit
3a0c4fcc82
@ -102,7 +102,7 @@ typedef unsigned __int64 UInt64;
|
|||||||
#else // if defined(_MSC_VER) // Other platforms, use long long
|
#else // if defined(_MSC_VER) // Other platforms, use long long
|
||||||
typedef long long int Int64;
|
typedef long long int Int64;
|
||||||
typedef unsigned long long int UInt64;
|
typedef unsigned long long int UInt64;
|
||||||
#endif // if defined(_MSC_VER)
|
#endif // if defined(_MSC_VER)
|
||||||
typedef Int64 LargestInt;
|
typedef Int64 LargestInt;
|
||||||
typedef UInt64 LargestUInt;
|
typedef UInt64 LargestUInt;
|
||||||
#define JSON_HAS_INT64
|
#define JSON_HAS_INT64
|
||||||
|
@ -49,7 +49,7 @@ enum CommentPlacement {
|
|||||||
commentBefore = 0, ///< a comment placed on the line before a value
|
commentBefore = 0, ///< a comment placed on the line before a value
|
||||||
commentAfterOnSameLine, ///< a comment just after a value on the same line
|
commentAfterOnSameLine, ///< a comment just after a value on the same line
|
||||||
commentAfter, ///< a comment on the line after a value (only make sense for
|
commentAfter, ///< a comment on the line after a value (only make sense for
|
||||||
///root value)
|
/// root value)
|
||||||
numberOfCommentPlacement
|
numberOfCommentPlacement
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,8 +83,9 @@ static inline char *duplicateStringValue(const char *value,
|
|||||||
length = Value::maxInt - 1;
|
length = Value::maxInt - 1;
|
||||||
|
|
||||||
char *newString = static_cast<char *>(malloc(length + 1));
|
char *newString = static_cast<char *>(malloc(length + 1));
|
||||||
JSON_ASSERT_MESSAGE(newString != 0, "in Json::Value::duplicateStringValue(): "
|
JSON_ASSERT_MESSAGE(newString != 0,
|
||||||
"Failed to allocate string value buffer");
|
"in Json::Value::duplicateStringValue(): "
|
||||||
|
"Failed to allocate string value buffer");
|
||||||
memcpy(newString, value, length);
|
memcpy(newString, value, length);
|
||||||
newString[length] = 0;
|
newString[length] = 0;
|
||||||
return newString;
|
return newString;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user