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

Unified Diff: third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.cpp

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/css/BinaryDataFontFaceSource.cpp
diff --git a/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.cpp b/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.cpp
index a32be44553d13e9bef25dcb9d550ce1dc7d4b5de..1327e3f6444342798adf2844b2737f6cf6c59597 100644
--- a/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.cpp
+++ b/third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.cpp
@@ -22,7 +22,7 @@ BinaryDataFontFaceSource::~BinaryDataFontFaceSource()
bool BinaryDataFontFaceSource::isValid() const
{
- return m_customPlatformData;
+ return !!m_customPlatformData;
}
PassRefPtr<SimpleFontData> BinaryDataFontFaceSource::createFontData(const FontDescription& fontDescription)

Powered by Google App Engine
This is Rietveld 408576698