diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-04-25 22:12:34 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-25 22:12:34 +0000 |
commit | 9b8b217e6f8f2ff03b09d6075e689804928c7b3c (patch) | |
tree | 37f19ed798112f86674be18de6ba76b0d73fded1 /fpdfsdk/fpdf_catalog_unittest.cpp | |
parent | ecc1b271aba7d785426b4488dde754e5ce5e4313 (diff) | |
download | pdfium-9b8b217e6f8f2ff03b09d6075e689804928c7b3c.tar.xz |
Replace reinterpret_cast with static_cast where possible
Change-Id: Ic62f1def8e043494c9fa6c08a937d7d872513567
Reviewed-on: https://pdfium-review.googlesource.com/31314
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_catalog_unittest.cpp')
-rw-r--r-- | fpdfsdk/fpdf_catalog_unittest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_catalog_unittest.cpp b/fpdfsdk/fpdf_catalog_unittest.cpp index 5bb55594eb..648cb24e7a 100644 --- a/fpdfsdk/fpdf_catalog_unittest.cpp +++ b/fpdfsdk/fpdf_catalog_unittest.cpp @@ -36,7 +36,7 @@ class CPDF_TestXFAContext : public CPDFXFA_Context { : CPDFXFA_Context(pdfium::MakeUnique<CPDF_TestDocument>()) {} void SetRoot(CPDF_Dictionary* root) { - reinterpret_cast<CPDF_TestDocument*>(GetPDFDoc())->SetRoot(root); + static_cast<CPDF_TestDocument*>(GetPDFDoc())->SetRoot(root); } CPDF_IndirectObjectHolder* GetHolder() { return GetPDFDoc(); } |