diff options
author | tsepez <tsepez@chromium.org> | 2016-04-21 12:09:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-21 12:09:41 -0700 |
commit | df964dfb34e648e27dce7bef785b204894a7058a (patch) | |
tree | 5b0e31ca677aad571fc1fbd67c0e5e57d21cdc03 /fpdfsdk/javascript/Document.cpp | |
parent | d00a91229690e453cb7f2eed652d81e864b27d2a (diff) | |
download | pdfium-df964dfb34e648e27dce7bef785b204894a7058a.tar.xz |
Replace CFX_RectArray with std::vector<CFX_FloatRect>
Use RVO now that we use an array type compatible with it.
Review URL: https://codereview.chromium.org/1906903002
Diffstat (limited to 'fpdfsdk/javascript/Document.cpp')
-rw-r--r-- | fpdfsdk/javascript/Document.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp index 551d649830..fa2f7ae4e4 100644 --- a/fpdfsdk/javascript/Document.cpp +++ b/fpdfsdk/javascript/Document.cpp @@ -494,9 +494,7 @@ FX_BOOL Document::removeField(IJS_Context* cc, ++rcAnnot.right; ++rcAnnot.top; - CFX_RectArray aRefresh; - aRefresh.Add(rcAnnot); - + std::vector<CFX_FloatRect> aRefresh(1, rcAnnot); UnderlyingPageType* pPage = pWidget->GetUnderlyingPage(); ASSERT(pPage); |