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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/Maybe.h

Issue 2098523002: Fix some issues found by coverity scans on Node.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | third_party/WebKit/Source/platform/inspector_protocol/String16STL.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/inspector_protocol/Maybe.h
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Maybe.h b/third_party/WebKit/Source/platform/inspector_protocol/Maybe.h
index 3fcd081d89f12a7e0d742dd2a2c1a0e349b290ab..cf372e0bbe2015cdbaff282615ce10041fcc30e2 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/Maybe.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/Maybe.h
@@ -18,7 +18,7 @@ class String16;
template<typename T>
class Maybe {
public:
- Maybe() { }
+ Maybe() : m_value() { }
Maybe(std::unique_ptr<T> value) : m_value(std::move(value)) { }
void operator=(std::unique_ptr<T> value) { m_value = std::move(value); }
T* fromJust() const { DCHECK(m_value); return m_value.get(); }
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/inspector_protocol/String16STL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698