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

Unified Diff: core/fpdfapi/fpdf_page/include/cpdf_path.h

Issue 2310693002: Use safe bool conversion operators in fpdf_page/ (Closed)
Patch Set: Created 4 years, 3 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 | « core/fpdfapi/fpdf_page/include/cpdf_generalstate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_page/include/cpdf_path.h
diff --git a/core/fpdfapi/fpdf_page/include/cpdf_path.h b/core/fpdfapi/fpdf_page/include/cpdf_path.h
index a9b0a7fac06cb2c0cfbf75285beebbf399bb0a60..ae98531214dbecfc2d32a3813809bbe768f9d335 100644
--- a/core/fpdfapi/fpdf_page/include/cpdf_path.h
+++ b/core/fpdfapi/fpdf_page/include/cpdf_path.h
@@ -20,7 +20,7 @@ class CPDF_Path {
~CPDF_Path();
void Emplace() { m_Ref.Emplace(); }
- operator bool() const { return !!m_Ref; }
+ explicit operator bool() const { return !!m_Ref; }
int GetPointCount() const;
void SetPointCount(int count);
« no previous file with comments | « core/fpdfapi/fpdf_page/include/cpdf_generalstate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698