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

Unified Diff: third_party/WebKit/Source/core/animation/PairwiseInterpolationValue.h

Issue 1878253003: Allow explicit conversion operators and implement WTF::OwnPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/Source/core/animation/PairwiseInterpolationValue.h
diff --git a/third_party/WebKit/Source/core/animation/PairwiseInterpolationValue.h b/third_party/WebKit/Source/core/animation/PairwiseInterpolationValue.h
index 6fe9bd94471026d339c31df3554049a3f6f267d8..d94cd2a570a545208deed9483dc1c241c540c430 100644
--- a/third_party/WebKit/Source/core/animation/PairwiseInterpolationValue.h
+++ b/third_party/WebKit/Source/core/animation/PairwiseInterpolationValue.h
@@ -29,7 +29,7 @@ struct PairwiseInterpolationValue {
, nonInterpolableValue(other.nonInterpolableValue.release())
{ }
- operator bool() const { return startInterpolableValue; }
+ operator bool() const { return !!startInterpolableValue; }
OwnPtr<InterpolableValue> startInterpolableValue;
OwnPtr<InterpolableValue> endInterpolableValue;

Powered by Google App Engine
This is Rietveld 408576698