Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MJPA/SimpleJSON.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Guyard <romain.guyard@parrot.com>2015-08-17 11:49:30 +0300
committerRomain Guyard <romain.guyard@parrot.com>2015-08-17 11:49:30 +0300
commitaec10201ffa412e9766a7323ee056cf90e0148b5 (patch)
tree3ebb16d93f1138b56c693e49ce54840a778ece96
parent7682af463da5ecd9e088d3390bc1582165bf942c (diff)
remove warning in constructors
-rw-r--r--src/JSONValue.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/JSONValue.cpp b/src/JSONValue.cpp
index c15f686..cbf8648 100644
--- a/src/JSONValue.cpp
+++ b/src/JSONValue.cpp
@@ -309,6 +309,8 @@ JSONValue *JSONValue::Parse(const wchar_t **data)
JSONValue::JSONValue(/*NULL*/)
{
type = JSONType_Null;
+ bool_value = false;
+ number_value = 0;
}
/**
@@ -322,6 +324,8 @@ JSONValue::JSONValue(const wchar_t *m_char_value)
{
type = JSONType_String;
string_value = std::wstring(m_char_value);
+ bool_value = false;
+ number_value = 0;
}
/**
@@ -335,6 +339,8 @@ JSONValue::JSONValue(const std::wstring &m_string_value)
{
type = JSONType_String;
string_value = m_string_value;
+ bool_value = false;
+ number_value = 0;
}
/**
@@ -348,6 +354,7 @@ JSONValue::JSONValue(bool m_bool_value)
{
type = JSONType_Bool;
bool_value = m_bool_value;
+ number_value = 0;
}
/**
@@ -361,6 +368,7 @@ JSONValue::JSONValue(double m_number_value)
{
type = JSONType_Number;
number_value = m_number_value;
+ bool_value = false;
}
/**
@@ -374,6 +382,8 @@ JSONValue::JSONValue(const JSONArray &m_array_value)
{
type = JSONType_Array;
array_value = m_array_value;
+ bool_value = false;
+ number_value = 0;
}
/**
@@ -387,6 +397,8 @@ JSONValue::JSONValue(const JSONObject &m_object_value)
{
type = JSONType_Object;
object_value = m_object_value;
+ bool_value = false;
+ number_value = 0;
}
/**