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

Unified Diff: src/objects.h

Issue 458743005: Fix presubmit error. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 62e80e7a5a4094fb802195ec5c832df86b368f89..80442b4608673f7a470a175d7bde310ebd1bec29 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7541,7 +7541,7 @@ class SharedFunctionInfo: public HeapObject {
// Printing support.
struct SourceCodeOf {
- SourceCodeOf(SharedFunctionInfo* v, int max = -1)
+ explicit SourceCodeOf(SharedFunctionInfo* v, int max = -1)
: value(v), max_length(max) {}
const SharedFunctionInfo* value;
int max_length;
@@ -9745,7 +9745,8 @@ class ConsStringNullOp {
class ConsStringIteratorOp {
public:
inline ConsStringIteratorOp() {}
- inline ConsStringIteratorOp(ConsString* cons_string, int offset = 0) {
+ inline explicit ConsStringIteratorOp(ConsString* cons_string,
+ int offset = 0) {
Reset(cons_string, offset);
}
inline void Reset(ConsString* cons_string, int offset = 0) {
« 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