diff options
author | Lei Zhang <thestig@chromium.org> | 2017-11-02 19:27:08 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-02 19:27:08 +0000 |
commit | a6adac83c6aadbacf2a338d2e55148f7d3417762 (patch) | |
tree | 2a2199d74d18545d2fffd7bad3c44478b6560dce /fpdfsdk/fpdf_flatten.cpp | |
parent | 23efbbd8a1840d5dd746d94069741b0532b61b14 (diff) | |
download | pdfium-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/fpdf_flatten.cpp')
-rw-r--r-- | fpdfsdk/fpdf_flatten.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_flatten.cpp b/fpdfsdk/fpdf_flatten.cpp index a276e3a368..35d3617627 100644 --- a/fpdfsdk/fpdf_flatten.cpp +++ b/fpdfsdk/fpdf_flatten.cpp @@ -200,8 +200,7 @@ void SetPageContents(const ByteString& key, auto pAcc = pdfium::MakeRetain<CPDF_StreamAcc>(pContentsStream); pAcc->LoadAllData(); ByteString sStream = "q\n"; - ByteString sBody = - ByteString((const char*)pAcc->GetData(), pAcc->GetSize()); + ByteString sBody = ByteString(pAcc->GetData(), pAcc->GetSize()); sStream = sStream + sBody + "\nQ"; pContentsStream->SetDataAndRemoveFilter(sStream.raw_str(), sStream.GetLength()); |