summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_colorstate.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-03 17:10:13 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-03 17:10:13 -0700
commit7b36672405c05037709a7ba3e8cc96efe2471408 (patch)
tree8a7d7d9b27fcf11d97ae0c8b3630b0e586f81bf4 /core/fpdfapi/fpdf_page/cpdf_colorstate.h
parent738766eefaf14fabb168f1f5a5c987f8e7049cab (diff)
downloadpdfium-chromium/2851.tar.xz
Use safe bool conversion operators in fpdf_page/chromium/2852chromium/2851chromium/2850
Review-Url: https://codereview.chromium.org/2310693002
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_colorstate.h')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_colorstate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_colorstate.h b/core/fpdfapi/fpdf_page/cpdf_colorstate.h
index d928dbdb2e..a4077d965f 100644
--- a/core/fpdfapi/fpdf_page/cpdf_colorstate.h
+++ b/core/fpdfapi/fpdf_page/cpdf_colorstate.h
@@ -51,7 +51,7 @@ class CPDF_ColorState {
// TODO(tsepez): Stop leaking ColorStateData outside this class.
const CPDF_ColorStateData* GetObject() const { return m_Ref.GetObject(); }
- operator bool() const { return !!m_Ref; }
+ explicit operator bool() const { return !!m_Ref; }
private:
void SetColor(CPDF_Color& color,