diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-22 17:05:40 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-23 00:18:13 +0000 |
commit | b45324bfb414acc595e478dc7dc63ac43c792580 (patch) | |
tree | 90af2bb4c6386b2b2825c80d7405dace0416c69b /xfa/fxfa/cxfa_fileread.cpp | |
parent | 4cb82ee95256f110489f2b503e70729c44419e74 (diff) | |
download | pdfium-b45324bfb414acc595e478dc7dc63ac43c792580.tar.xz |
Use NOTREACHED() in more places.
Change-Id: I88466943171f19259f84add69679741d44c8e123
Reviewed-on: https://pdfium-review.googlesource.com/5551
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_fileread.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_fileread.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_fileread.cpp b/xfa/fxfa/cxfa_fileread.cpp index acd81a2232..12e23646d1 100644 --- a/xfa/fxfa/cxfa_fileread.cpp +++ b/xfa/fxfa/cxfa_fileread.cpp @@ -9,6 +9,7 @@ #include <algorithm> #include "core/fpdfapi/parser/cpdf_stream_acc.h" +#include "third_party/base/logging.h" #include "third_party/base/stl_util.h" CXFA_FileRead::CXFA_FileRead(const std::vector<CPDF_Stream*>& streams) { @@ -56,7 +57,7 @@ bool CXFA_FileRead::ReadBlock(void* buffer, FX_FILESIZE offset, size_t size) { } size_t CXFA_FileRead::ReadBlock(void* buffer, size_t size) { - ASSERT(false); + NOTREACHED(); return 0; } @@ -69,13 +70,13 @@ bool CXFA_FileRead::IsEOF() { } bool CXFA_FileRead::Flush() { - ASSERT(false); + NOTREACHED(); return false; } bool CXFA_FileRead::WriteBlock(const void* pData, FX_FILESIZE offset, size_t size) { - ASSERT(false); + NOTREACHED(); return false; } |