summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-02 19:27:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-02 19:27:08 +0000
commita6adac83c6aadbacf2a338d2e55148f7d3417762 (patch)
tree2a2199d74d18545d2fffd7bad3c44478b6560dce /fpdfsdk/fpdfview.cpp
parent23efbbd8a1840d5dd746d94069741b0532b61b14 (diff)
downloadpdfium-a6adac83c6aadbacf2a338d2e55148f7d3417762.tar.xz
Remove some C-style const char* casts.
Change-Id: I4785dd277b9da072ee3c55e2aaeb688bbf02852e Reviewed-on: https://pdfium-review.googlesource.com/17391 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview.cpp')
-rw-r--r--fpdfsdk/fpdfview.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp
index dc2cfef126..2736b8dd6a 100644
--- a/fpdfsdk/fpdfview.cpp
+++ b/fpdfsdk/fpdfview.cpp
@@ -571,9 +571,8 @@ FPDF_EXPORT FPDF_DOCUMENT FPDF_CALLCONV
FPDF_LoadDocument(FPDF_STRING file_path, FPDF_BYTESTRING password) {
// NOTE: the creation of the file needs to be by the embedder on the
// other side of this API.
- return LoadDocumentImpl(
- IFX_SeekableReadStream::CreateFromFilename((const char*)file_path),
- password);
+ return LoadDocumentImpl(IFX_SeekableReadStream::CreateFromFilename(file_path),
+ password);
}
FPDF_EXPORT int FPDF_CALLCONV FPDF_GetFormType(FPDF_DOCUMENT document) {