commit | 28836b8acc2c002b0488c13dba28fd5be864970a | [log] [tgz] |
---|---|---|
author | Christopher Dunn <cdunn2001@gmail.com> | Sat Jul 05 13:52:19 2014 -0700 |
committer | Christopher Dunn <cdunn2001@gmail.com> | Sat Jul 05 17:36:20 2014 -0700 |
tree | c1b190d6f81ea4a70144ee63f8a637c96673b911 | |
parent | 47f1577fd38c3810469049bd5de5956a44954ae6 [diff] [blame] |
fix bug for static init Ugh! Static initialization of instance variables is a very bad idea. This fix is taken from the Chromium code-base. It includes their double-fix for ARM. * https://codereview.chromium.org/24984004 * https://src.chromium.org/viewvc/chrome?revision=226099&view=revision * https://code.google.com/p/webrtc/issues/detail?id=1777
diff --git a/include/json/value.h b/include/json/value.h index 92526a4..1ad006f 100644 --- a/include/json/value.h +++ b/include/json/value.h
@@ -133,7 +133,7 @@ typedef Json::LargestUInt LargestUInt; typedef Json::ArrayIndex ArrayIndex; - static const Value null; + static const Value& null; /// Minimum signed integer value that can be stored in a Json::Value. static const LargestInt minLargestInt; /// Maximum signed integer value that can be stored in a Json::Value.