From 0a0892626d24ce82e7026c32c71b1de036d4bbe1 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 10 May 2017 14:00:53 -0700 Subject: Replace operator bool with HasRef() in classes with a CFX_SharedCopyOnWrite member. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I51e30d298e87b9ae0d5aca83b2f1d6787efce70a Reviewed-on: https://pdfium-review.googlesource.com/5290 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez Reviewed-by: Nicolás Peña --- core/fpdfapi/page/cpdf_clippath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fpdfapi/page/cpdf_clippath.h') diff --git a/core/fpdfapi/page/cpdf_clippath.h b/core/fpdfapi/page/cpdf_clippath.h index dd44cb250e..8493a9ccd9 100644 --- a/core/fpdfapi/page/cpdf_clippath.h +++ b/core/fpdfapi/page/cpdf_clippath.h @@ -28,7 +28,7 @@ class CPDF_ClipPath { void Emplace() { m_Ref.Emplace(); } void SetNull() { m_Ref.SetNull(); } - explicit operator bool() const { return !!m_Ref; } + bool HasRef() const { return !!m_Ref; } bool operator==(const CPDF_ClipPath& that) const { return m_Ref == that.m_Ref; } -- cgit v1.2.3