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

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Yip <miloyip@gmail.com>2015-11-30 12:22:06 +0300
committerMilo Yip <miloyip@gmail.com>2015-11-30 12:22:06 +0300
commitdb0a03a43c9aa8d665b5a950e72b21f36eaff9c4 (patch)
treee264cf84e51ca7d2c7be55aebfb953f0f89d1a04 /include/rapidjson/pointer.h
parent8ec389f167e9c116104414172f118978a821b5bb (diff)
Fix #483 by using the correct value type
Diffstat (limited to 'include/rapidjson/pointer.h')
-rw-r--r--include/rapidjson/pointer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rapidjson/pointer.h b/include/rapidjson/pointer.h
index 5d2aa8d6..d873163a 100644
--- a/include/rapidjson/pointer.h
+++ b/include/rapidjson/pointer.h
@@ -390,7 +390,7 @@ public:
bool exist = true;
for (const Token *t = tokens_; t != tokens_ + tokenCount_; ++t) {
if (v->IsArray() && t->name[0] == '-' && t->length == 1) {
- v->PushBack(Value().Move(), allocator);
+ v->PushBack(ValueType().Move(), allocator);
v = &((*v)[v->Size() - 1]);
exist = false;
}
@@ -408,7 +408,7 @@ public:
if (t->index >= v->Size()) {
v->Reserve(t->index + 1, allocator);
while (t->index >= v->Size())
- v->PushBack(Value().Move(), allocator);
+ v->PushBack(ValueType().Move(), allocator);
exist = false;
}
v = &((*v)[t->index]);
@@ -416,7 +416,7 @@ public:
else {
typename ValueType::MemberIterator m = v->FindMember(GenericStringRef<Ch>(t->name, t->length));
if (m == v->MemberEnd()) {
- v->AddMember(Value(t->name, t->length, allocator).Move(), Value().Move(), allocator);
+ v->AddMember(ValueType(t->name, t->length, allocator).Move(), ValueType().Move(), allocator);
v = &(--v->MemberEnd())->value; // Assumes AddMember() appends at the end
exist = false;
}