diff options
author | Jane Liu <janeliulwq@google.com> | 2017-06-29 19:47:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-30 01:13:08 +0000 |
commit | 1a084021c5d93aef0f726d4fbc2598476409982c (patch) | |
tree | 825599c8a4cb779cf842427c34fe1d6db466358a /fpdfsdk/fpdfeditpath.cpp | |
parent | baa7ff4390b8b36c2d58c1b1f8d9775c76da656a (diff) | |
download | pdfium-1a084021c5d93aef0f726d4fbc2598476409982c.tar.xz |
Replaced static casts with CPDFPageObjectFromFPDFPageObject()
Change-Id: I6296928a1dbd5a8dffaf949ac4c8d7e8336c4448
Reviewed-on: https://pdfium-review.googlesource.com/7170
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfeditpath.cpp')
-rw-r--r-- | fpdfsdk/fpdfeditpath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfeditpath.cpp b/fpdfsdk/fpdfeditpath.cpp index 6235210113..12d8a975a3 100644 --- a/fpdfsdk/fpdfeditpath.cpp +++ b/fpdfsdk/fpdfeditpath.cpp @@ -194,7 +194,7 @@ DLLEXPORT void STDCALL FPDFPath_SetLineJoin(FPDF_PAGEOBJECT path, static_cast<int>(CFX_GraphStateData::LineJoin::LineJoinBevel)) { return; } - auto* pPathObj = static_cast<CPDF_PageObject*>(path); + auto* pPathObj = CPDFPageObjectFromFPDFPageObject(path); CFX_GraphStateData::LineJoin lineJoin = static_cast<CFX_GraphStateData::LineJoin>(line_join); pPathObj->m_GraphState.SetLineJoin(lineJoin); @@ -208,7 +208,7 @@ DLLEXPORT void STDCALL FPDFPath_SetLineCap(FPDF_PAGEOBJECT path, int line_cap) { line_cap > static_cast<int>(CFX_GraphStateData::LineCap::LineCapSquare)) { return; } - auto* pPathObj = static_cast<CPDF_PageObject*>(path); + auto* pPathObj = CPDFPageObjectFromFPDFPageObject(path); CFX_GraphStateData::LineCap lineCap = static_cast<CFX_GraphStateData::LineCap>(line_cap); pPathObj->m_GraphState.SetLineCap(lineCap); |