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

Unified Diff: lib/Maybe_h.template

Issue 2526603002: [inspector_protocol] Introduce protocol::Serializable (Closed)
Patch Set: minor fix Created 4 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 | « lib/FrontendChannel_h.template ('k') | lib/Object_cpp.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Maybe_h.template
diff --git a/lib/Maybe_h.template b/lib/Maybe_h.template
index cd0dfbdf2e10c9e3b52ec0ba7baccf3744481ba9..71593acd0e553d737e6fd9a623bf1874c35298ee 100644
--- a/lib/Maybe_h.template
+++ b/lib/Maybe_h.template
@@ -21,7 +21,7 @@ public:
T* fromJust() const { DCHECK(m_value); return m_value.get(); }
T* fromMaybe(T* defaultValue) const { return m_value ? m_value.get() : defaultValue; }
bool isJust() const { return !!m_value; }
- std::unique_ptr<T> takeJust() { DCHECK(m_value); return m_value.release(); }
+ std::unique_ptr<T> takeJust() { DCHECK(m_value); return std::move(m_value); }
private:
std::unique_ptr<T> m_value;
};
« no previous file with comments | « lib/FrontendChannel_h.template ('k') | lib/Object_cpp.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698