diff options
author | jaepark <jaepark@google.com> | 2016-08-25 13:33:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-25 13:33:34 -0700 |
commit | a1d2111945acb35cb3403226e68a1920910fa23e (patch) | |
tree | f8e0dafb97832a0cad15adc50c9b55c0d5b0c48a /fpdfsdk/fpdfeditpage.cpp | |
parent | d99a833da49272ee487293177f62274f58762033 (diff) | |
download | pdfium-a1d2111945acb35cb3403226e68a1920910fa23e.tar.xz |
CPDF_Annot::GetRect() should return CFX_FloatRect.
Avoid using reference argument and return CFX_FloatRect instead.
Review-Url: https://codereview.chromium.org/2278153005
Diffstat (limited to 'fpdfsdk/fpdfeditpage.cpp')
-rw-r--r-- | fpdfsdk/fpdfeditpage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfeditpage.cpp b/fpdfsdk/fpdfeditpage.cpp index 0daa459037..1301018709 100644 --- a/fpdfsdk/fpdfeditpage.cpp +++ b/fpdfsdk/fpdfeditpage.cpp @@ -295,8 +295,7 @@ DLLEXPORT void STDCALL FPDFPage_TransformAnnots(FPDF_PAGE page, for (size_t i = 0; i < AnnotList.Count(); ++i) { CPDF_Annot* pAnnot = AnnotList.GetAt(i); // transformAnnots Rectangle - CFX_FloatRect rect; - pAnnot->GetRect(rect); + CFX_FloatRect rect = pAnnot->GetRect(); CFX_Matrix matrix((FX_FLOAT)a, (FX_FLOAT)b, (FX_FLOAT)c, (FX_FLOAT)d, (FX_FLOAT)e, (FX_FLOAT)f); rect.Transform(&matrix); |