summaryrefslogtreecommitdiff
path: root/fxjs/cjs_globaldata.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 /fxjs/cjs_globaldata.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 'fxjs/cjs_globaldata.cpp')
-rw-r--r--fxjs/cjs_globaldata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_globaldata.cpp b/fxjs/cjs_globaldata.cpp
index fe7d94b9a4..3f962734db 100644
--- a/fxjs/cjs_globaldata.cpp
+++ b/fxjs/cjs_globaldata.cpp
@@ -337,8 +337,8 @@ void CJS_GlobalData::SaveGlobalPersisitentVariables() {
CRYPT_ArcFourCryptBlock(sFile.GetBuffer(), sFile.GetSize(), JS_RC4KEY,
sizeof(JS_RC4KEY));
- WriteFileBuffer(m_sFilePath.c_str(), (const char*)sFile.GetBuffer(),
- sFile.GetSize());
+ WriteFileBuffer(m_sFilePath.c_str(),
+ reinterpret_cast<char*>(sFile.GetBuffer()), sFile.GetSize());
}
void CJS_GlobalData::LoadFileBuffer(const wchar_t* sFilePath,