summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_baannot.cpp
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-08-25 13:33:34 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-25 13:33:34 -0700
commita1d2111945acb35cb3403226e68a1920910fa23e (patch)
treef8e0dafb97832a0cad15adc50c9b55c0d5b0c48a /fpdfsdk/cpdfsdk_baannot.cpp
parentd99a833da49272ee487293177f62274f58762033 (diff)
downloadpdfium-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/cpdfsdk_baannot.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_baannot.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/fpdfsdk/cpdfsdk_baannot.cpp b/fpdfsdk/cpdfsdk_baannot.cpp
index 6a4ba86d94..99dd2e0538 100644
--- a/fpdfsdk/cpdfsdk_baannot.cpp
+++ b/fpdfsdk/cpdfsdk_baannot.cpp
@@ -35,9 +35,7 @@ void CPDFSDK_BAAnnot::SetRect(const CFX_FloatRect& rect) {
}
CFX_FloatRect CPDFSDK_BAAnnot::GetRect() const {
- CFX_FloatRect rect;
- m_pAnnot->GetRect(rect);
- return rect;
+ return m_pAnnot->GetRect();
}
CFX_ByteString CPDFSDK_BAAnnot::GetType() const {