summaryrefslogtreecommitdiffstats
path: root/base/values.h
diff options
context:
space:
mode:
authormmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-06 15:46:59 +0000
committermmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-06 15:46:59 +0000
commitabb9d0ca091ed62a1ff77efca594932b31dce975 (patch)
tree988fc455824d8870ed3eefc526b42987f20a0901 /base/values.h
parent294300a62be265e4b17eb9df0ee4ddfd543a1fb4 (diff)
downloadchromium_src-abb9d0ca091ed62a1ff77efca594932b31dce975.zip
chromium_src-abb9d0ca091ed62a1ff77efca594932b31dce975.tar.gz
chromium_src-abb9d0ca091ed62a1ff77efca594932b31dce975.tar.bz2
Portability fix for Value. The MSVC CRT doesn't complain about memcpy_s unless _CRT_SECURE_DEPRECATE_MEMORY is defined (and it isn't); there are no other callers of memcpy_s in base. (And seriously, what's an extra count argument supposed to solve, anyway?) current_entry_type is dropped because it's unused. A virtual destructor is added to ValueSerializer to conform to the style guide and quiet gcc's helpful warning.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.h')
-rw-r--r--base/values.h2
1 files changed, 2 insertions, 0 deletions
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.