summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2015-11-02 15:03:06 +0800
committerJun Fang <jun_fang@foxitsoftware.com>2015-11-02 15:03:06 +0800
commit71fca3fffc40f63b28c0085add17ac73b5a066ef (patch)
tree464f844d1028f84cf2506337fc0b61f7b445d96a /samples
parentd946f3011984755b14d7dcfb05d572e870f93f3f (diff)
downloadpdfium-71fca3fffc40f63b28c0085add17ac73b5a066ef.tar.xz
Use standard true and false to replace 'TRUE' and 'FALSE' in pdfium_test
BUG=446715 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1410073009 .
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index fc94fde19f..571bfcd3e6 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -344,14 +344,14 @@ FPDF_BOOL Is_Data_Avail(FX_FILEAVAIL* pThis, size_t offset, size_t size) {
void Add_Segment(FX_DOWNLOADHINTS* pThis, size_t offset, size_t size) {
}
-FPDF_BOOL RenderPage(const std::string& name,
- const FPDF_DOCUMENT& doc,
- const FPDF_FORMHANDLE& form,
- const int page_index,
- const Options& options) {
+bool RenderPage(const std::string& name,
+ const FPDF_DOCUMENT& doc,
+ const FPDF_FORMHANDLE& form,
+ const int page_index,
+ const Options& options) {
FPDF_PAGE page = FPDF_LoadPage(doc, page_index);
if (!page) {
- return FALSE;
+ return false;
}
FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page);
FORM_OnAfterLoadPage(page, form);
@@ -367,7 +367,7 @@ FPDF_BOOL RenderPage(const std::string& name,
FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, 0);
if (!bitmap) {
fprintf(stderr, "Page was too large to be rendered.\n");
- return FALSE;
+ return false;
}
FPDFBitmap_FillRect(bitmap, 0, 0, width, height, 0xFFFFFFFF);
@@ -405,7 +405,7 @@ FPDF_BOOL RenderPage(const std::string& name,
FORM_OnBeforeClosePage(page, form);
FPDFText_ClosePage(text_page);
FPDF_ClosePage(page);
- return TRUE;
+ return true;
}
void RenderPdf(const std::string& name, const char* pBuf, size_t len,
@@ -442,7 +442,7 @@ void RenderPdf(const std::string& name, const char* pBuf, size_t len,
FPDF_DOCUMENT doc;
int nRet = PDF_DATA_NOTAVAIL;
- FPDF_BOOL bIsLinearized = FALSE;
+ bool bIsLinearized = false;
FPDF_AVAIL pdf_avail = FPDFAvail_Create(&file_avail, &file_access);
if (FPDFAvail_IsLinearized(pdf_avail) == PDF_LINEARIZED) {
@@ -463,7 +463,7 @@ void RenderPdf(const std::string& name, const char* pBuf, size_t len,
nRet);
return;
}
- bIsLinearized = TRUE;
+ bIsLinearized = true;
}
} else {
fprintf(stderr, "Non-linearized path...\n");