Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Unified Diff: base/values.h

Issue 11418048: Add copy and assignment to FundamentalValue and StringValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: relative to previous patch Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.h
diff --git a/base/values.h b/base/values.h
index 6b650052accf75d2e777e60e988526fbb609e078..e620483cb275757cf86259d43708b8da404a42b8 100644
--- a/base/values.h
+++ b/base/values.h
@@ -114,16 +114,13 @@ class BASE_EXPORT Value {
static bool Equals(const Value* a, const Value* b);
protected:
- // This isn't safe for end-users (they should use the Create*Value()
- // static methods above), but it's useful for subclasses.
+ // These aren't safe for end-users, but they are useful for subclasses.
explicit Value(Type type);
+ Value(const Value& value);
+ void operator=(const Value& value);
brettw 2012/11/17 20:57:01 This should return Value&
private:
- Value();
-
Type type_;
-
- DISALLOW_COPY_AND_ASSIGN(Value);
};
// FundamentalValue represents the simple fundamental types of values.
@@ -147,8 +144,6 @@ class BASE_EXPORT FundamentalValue : public Value {
int integer_value_;
double double_value_;
};
-
- DISALLOW_COPY_AND_ASSIGN(FundamentalValue);
};
class BASE_EXPORT StringValue : public Value {
@@ -169,8 +164,6 @@ class BASE_EXPORT StringValue : public Value {
private:
std::string value_;
-
- DISALLOW_COPY_AND_ASSIGN(StringValue);
};
class BASE_EXPORT BinaryValue: public Value {
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698