diff options
Diffstat (limited to 'include/rapidjson/document.h')
-rw-r--r-- | include/rapidjson/document.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index abac0c2c..4a3a1a21 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -1097,7 +1097,7 @@ public: MemberIterator pos = MemberBegin() + (first - MemberBegin());
for (MemberIterator itr = pos; itr != last; ++itr)
itr->~Member();
- memmove(&*pos, &*last, (MemberEnd() - last) * sizeof(Member));
+ std::memmove(&*pos, &*last, (MemberEnd() - last) * sizeof(Member));
data_.o.size -= (last - first);
return pos;
}
@@ -1277,7 +1277,7 @@ int z = a[0u].GetInt(); // This works too. ValueIterator pos = Begin() + (first - Begin());
for (ValueIterator itr = pos; itr != last; ++itr)
itr->~GenericValue();
- memmove(pos, last, (End() - last) * sizeof(GenericValue));
+ std::memmove(pos, last, (End() - last) * sizeof(GenericValue));
data_.a.size -= (last - first);
return pos;
}
@@ -1527,7 +1527,7 @@ private: void SetArrayRaw(GenericValue* values, SizeType count, Allocator& allocator) {
flags_ = kArrayFlag;
data_.a.elements = (GenericValue*)allocator.Malloc(count * sizeof(GenericValue));
- memcpy(data_.a.elements, values, count * sizeof(GenericValue));
+ std::memcpy(data_.a.elements, values, count * sizeof(GenericValue));
data_.a.size = data_.a.capacity = count;
}
@@ -1535,7 +1535,7 @@ private: void SetObjectRaw(Member* members, SizeType count, Allocator& allocator) {
flags_ = kObjectFlag;
data_.o.members = (Member*)allocator.Malloc(count * sizeof(Member));
- memcpy(data_.o.members, members, count * sizeof(Member));
+ std::memcpy(data_.o.members, members, count * sizeof(Member));
data_.o.size = data_.o.capacity = count;
}
@@ -1559,7 +1559,7 @@ private: str = (Ch *)allocator.Malloc((s.length + 1) * sizeof(Ch));
data_.s.str = str;
}
- memcpy(str, s, s.length * sizeof(Ch));
+ std::memcpy(str, s, s.length * sizeof(Ch));
str[s.length] = '\0';
}
@@ -1583,7 +1583,7 @@ private: const Ch* const str2 = rhs.GetString();
if(str1 == str2) { return true; } // fast path for constant string
- return (memcmp(str1, str2, sizeof(Ch) * len1) == 0);
+ return (std::memcmp(str1, str2, sizeof(Ch) * len1) == 0);
}
Data data_;
|