diff options
-rw-r--r-- | base/values.cc | 3 | ||||
-rw-r--r-- | base/values.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/base/values.cc b/base/values.cc index 1cad628..00082d3 100644 --- a/base/values.cc +++ b/base/values.cc @@ -196,7 +196,7 @@ BinaryValue* BinaryValue::CreateWithCopiedBuffer(char* buffer, size_t size) { return NULL; char* buffer_copy = new char[size]; - memcpy_s(buffer_copy, size, buffer, size); + memcpy(buffer_copy, buffer, size); return new BinaryValue(buffer_copy, size); } @@ -277,7 +277,6 @@ bool DictionaryValue::Set(const std::wstring& path, Value* in_value) { // Assume that we're indexing into a dictionary. DictionaryValue* entry = NULL; - ValueType current_entry_type = TYPE_NULL; if (!HasKey(key) || (dictionary_[key]->GetType() != TYPE_DICTIONARY)) { entry = new DictionaryValue; SetInCurrentNode(key, entry); diff --git a/base/values.h b/base/values.h index 3a531a6..386f54c 100644 --- a/base/values.h +++ b/base/values.h @@ -369,6 +369,8 @@ class ListValue : public Value { // deserialize Value objects. class ValueSerializer { public: + virtual ~ValueSerializer() {} + virtual bool Serialize(const Value& root) = 0; // This method deserializes the subclass-specific format into a Value object. |