summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2016-02-08 14:51:41 -0800
committerOliver Chang <ochang@chromium.org>2016-02-08 14:51:41 -0800
commit42afeaf499e13f6a10a403eac9e9fd8de124ca5e (patch)
tree95bb476ee0f6e3aa024197cf4723831f194b80c0 /core/src/fpdfapi
parent7a73effb9fe071fbc852b30865d7a332e96fbd56 (diff)
downloadpdfium-42afeaf499e13f6a10a403eac9e9fd8de124ca5e.tar.xz
Convert NULLs to nullptrs in fpdf_parser_decode.cpp
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1680923002 .
Diffstat (limited to 'core/src/fpdfapi')
-rw-r--r--core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp
index 39139c40ee..5fbcf63b57 100644
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp
@@ -49,7 +49,7 @@ FX_DWORD A85Decode(const uint8_t* src_buf,
uint8_t*& dest_buf,
FX_DWORD& dest_size) {
dest_size = 0;
- dest_buf = NULL;
+ dest_buf = nullptr;
if (src_size == 0) {
return 0;
}
@@ -241,7 +241,7 @@ ICodec_ScanlineDecoder* FPDFAPI_CreateFaxDecoder(
Rows = 0;
}
if (Columns <= 0 || Rows < 0 || Columns > USHRT_MAX || Rows > USHRT_MAX) {
- return NULL;
+ return nullptr;
}
}
return CPDF_ModuleMgr::Get()->GetFaxModule()->CreateDecoder(
@@ -285,7 +285,7 @@ ICodec_ScanlineDecoder* FPDFAPI_CreateFlateDecoder(
BitsPerComponent = pParams->GetIntegerBy("BitsPerComponent", 8);
Columns = pParams->GetIntegerBy("Columns", 1);
if (!CheckFlateDecodeParams(Colors, BitsPerComponent, Columns)) {
- return NULL;
+ return nullptr;
}
}
return CPDF_ModuleMgr::Get()->GetFlateModule()->CreateDecoder(
@@ -353,7 +353,7 @@ FX_BOOL PDF_DataDecode(const uint8_t* src_buf,
int estimated_size =
i == DecoderList.GetSize() - 1 ? last_estimated_size : 0;
CFX_ByteString decoder = DecoderList[i];
- // Use ToDictionary here because we can push NULL into the ParamList.
+ // Use ToDictionary here because we can push nullptr into the ParamList.
CPDF_Dictionary* pParam = ToDictionary(ParamList[i]);
uint8_t* new_buf = nullptr;
FX_DWORD new_size = (FX_DWORD)-1;