summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_editimg.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-24 17:56:26 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-24 17:56:26 +0000
commit02d42b65b779e29737275a258cb9f30fa8449e5e (patch)
tree12e2b27d3883378315ab32efb1d5b86359783494 /fpdfsdk/fpdf_editimg.cpp
parent866d688766dbfc01d69f586bfa197d57df0d9b96 (diff)
downloadpdfium-02d42b65b779e29737275a258cb9f30fa8449e5e.tar.xz
Add CFX_Matrix::AsTuple().chromium/3591
Change-Id: I53c1b148cb8cdc77461766fc9996a0a3ce5f4cb7 Reviewed-on: https://pdfium-review.googlesource.com/c/44536 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_editimg.cpp')
-rw-r--r--fpdfsdk/fpdf_editimg.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/fpdfsdk/fpdf_editimg.cpp b/fpdfsdk/fpdf_editimg.cpp
index 21ed434d7f..8282eebdc1 100644
--- a/fpdfsdk/fpdf_editimg.cpp
+++ b/fpdfsdk/fpdf_editimg.cpp
@@ -6,6 +6,8 @@
#include "public/fpdf_edit.h"
+#include <utility>
+
#include "core/fpdfapi/cpdf_modulemgr.h"
#include "core/fpdfapi/page/cpdf_image.h"
#include "core/fpdfapi/page/cpdf_imageobject.h"
@@ -129,13 +131,7 @@ FPDFImageObj_GetMatrix(FPDF_PAGEOBJECT image_object,
if (!pImgObj || !a || !b || !c || !d || !e || !f)
return false;
- const CFX_Matrix& matrix = pImgObj->matrix();
- *a = matrix.a;
- *b = matrix.b;
- *c = matrix.c;
- *d = matrix.d;
- *e = matrix.e;
- *f = matrix.f;
+ std::tie(*a, *b, *c, *d, *e, *f) = pImgObj->matrix().AsTuple();
return true;
}