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

Unified Diff: core/fpdfapi/font/cpdf_type3char.cpp

Issue 2395803002: Remove FX_BOOL from core/fpdfapi/font (Closed)
Patch Set: Created 4 years, 2 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/font/cpdf_type3char.h ('k') | core/fpdfapi/font/ttgsubtable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/font/cpdf_type3char.cpp
diff --git a/core/fpdfapi/font/cpdf_type3char.cpp b/core/fpdfapi/font/cpdf_type3char.cpp
index 332287f594bf7f664f7553c0b31f1dc5d24cf15e..a4df2cc14662667b395b0492500cb78f5effd27b 100644
--- a/core/fpdfapi/font/cpdf_type3char.cpp
+++ b/core/fpdfapi/font/cpdf_type3char.cpp
@@ -13,20 +13,20 @@
#include "core/fxge/fx_dib.h"
CPDF_Type3Char::CPDF_Type3Char(CPDF_Form* pForm)
- : m_pForm(pForm), m_bColored(FALSE) {}
+ : m_pForm(pForm), m_bColored(false) {}
CPDF_Type3Char::~CPDF_Type3Char() {}
-FX_BOOL CPDF_Type3Char::LoadBitmap(CPDF_RenderContext* pContext) {
+bool CPDF_Type3Char::LoadBitmap(CPDF_RenderContext* pContext) {
if (m_pBitmap || !m_pForm)
- return TRUE;
+ return true;
if (m_pForm->GetPageObjectList()->size() != 1 || m_bColored)
- return FALSE;
+ return false;
auto& pPageObj = m_pForm->GetPageObjectList()->front();
if (!pPageObj->IsImage())
- return FALSE;
+ return false;
m_ImageMatrix = pPageObj->AsImage()->m_Matrix;
std::unique_ptr<CFX_DIBSource> pSource(
@@ -34,5 +34,5 @@ FX_BOOL CPDF_Type3Char::LoadBitmap(CPDF_RenderContext* pContext) {
if (pSource)
m_pBitmap.reset(pSource->Clone());
m_pForm.reset();
- return TRUE;
+ return true;
}
« no previous file with comments | « core/fpdfapi/font/cpdf_type3char.h ('k') | core/fpdfapi/font/ttgsubtable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698