summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_view.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-12 19:26:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-12 19:26:15 +0000
commit8128485d0169a8dcbe14289a868ff3c27440bfcf (patch)
treefd80bed666b8861efe40396bb599c948eb8c3c91 /fpdfsdk/fpdf_view.cpp
parenta3843c99e7a631b2fbf87bbc12834e61bfb7b6f2 (diff)
downloadpdfium-8128485d0169a8dcbe14289a868ff3c27440bfcf.tar.xz
CheckUnSupportError() always called with FPDF_ERR_SUCCESS.
So remove the argument, and the logic dependent upon it being otherwise. Rename function to more accurately reflect its purpose. Remove needless null check while we're at it. Change-Id: I7e119429fd159334eabcc250b5dac215580882ea Reviewed-on: https://pdfium-review.googlesource.com/34950 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_view.cpp')
-rw-r--r--fpdfsdk/fpdf_view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_view.cpp b/fpdfsdk/fpdf_view.cpp
index 4f10bcb20a..bfaf537feb 100644
--- a/fpdfsdk/fpdf_view.cpp
+++ b/fpdfsdk/fpdf_view.cpp
@@ -156,7 +156,7 @@ FPDF_DOCUMENT LoadDocumentImpl(
pDocument->SetExtension(pdfium::MakeUnique<CPDFXFA_Context>(pDocument.get()));
#endif // PDF_ENABLE_XFA
- CheckUnSupportError(pDocument.get(), error);
+ ReportUnsupportedFeatures(pDocument.get());
return FPDFDocumentFromCPDFDocument(pDocument.release());
}