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

Unified Diff: ppapi/cpp/var.cc

Issue 8372020: Handle all enum members in the switch statement. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 2 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/var.cc
===================================================================
--- ppapi/cpp/var.cc (revision 106674)
+++ ppapi/cpp/var.cc (working copy)
@@ -158,6 +158,9 @@
if (var_.value.as_id == other.var_.value.as_id)
return true;
return AsString() == other.AsString();
+ case PP_VARTYPE_OBJECT:
+ case PP_VARTYPE_ARRAY:
+ case PP_VARTYPE_DICTIONARY:
default: // Objects, arrays, dictionaries.
return var_.value.as_id == other.var_.value.as_id;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698