summaryrefslogtreecommitdiff
path: root/xfa/src/fxgraphics
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-12-10 12:29:58 -0800
committerTom Sepez <tsepez@chromium.org>2015-12-10 12:29:58 -0800
commit33c8c7602f8981c32d37a9b2e25496401e914391 (patch)
treedddaa54eefd8fe095a9e0174df88001c8435729b /xfa/src/fxgraphics
parent7ed503d2dbe0b51550f85df1c47990d12eb68f59 (diff)
downloadpdfium-33c8c7602f8981c32d37a9b2e25496401e914391.tar.xz
Replace more static casts in FWL (part 3)
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1508883003 .
Diffstat (limited to 'xfa/src/fxgraphics')
-rw-r--r--xfa/src/fxgraphics/src/fx_graphics.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/src/fxgraphics/src/fx_graphics.cpp b/xfa/src/fxgraphics/src/fx_graphics.cpp
index 990e7f47e8..69b0c2ad9b 100644
--- a/xfa/src/fxgraphics/src/fx_graphics.cpp
+++ b/xfa/src/fxgraphics/src/fx_graphics.cpp
@@ -403,7 +403,7 @@ FX_ERR CFX_Graphics::StretchImage(CFX_DIBSource* source,
default: { return FX_ERR_Property_Invalid; }
}
}
-FX_ERR CFX_Graphics::ConcatMatrix(CFX_Matrix* matrix) {
+FX_ERR CFX_Graphics::ConcatMatrix(const CFX_Matrix* matrix) {
_FX_RETURN_VALUE_IF_FAIL(matrix, FX_ERR_Parameter_Invalid);
switch (_type) {
case FX_CONTEXT_Device: {
@@ -544,7 +544,8 @@ FX_ERR CFX_Graphics::CalcTextRect(CFX_RectF& rect,
default: { return FX_ERR_Property_Invalid; }
}
}
-FX_ERR CFX_Graphics::Transfer(CFX_Graphics* graphics, CFX_Matrix* matrix) {
+FX_ERR CFX_Graphics::Transfer(CFX_Graphics* graphics,
+ const CFX_Matrix* matrix) {
_FX_RETURN_VALUE_IF_FAIL(graphics, FX_ERR_Parameter_Invalid);
CFX_Matrix m;
m.Set(_info._CTM.a, _info._CTM.b, _info._CTM.c, _info._CTM.d, _info._CTM.e,
@@ -570,7 +571,7 @@ FX_ERR CFX_Graphics::Transfer(CFX_Graphics* graphics,
FX_FLOAT srcLeft,
FX_FLOAT srcTop,
const CFX_RectF& dstRect,
- CFX_Matrix* matrix) {
+ const CFX_Matrix* matrix) {
_FX_RETURN_VALUE_IF_FAIL(graphics, FX_ERR_Parameter_Invalid);
CFX_Matrix m;
m.Set(_info._CTM.a, _info._CTM.b, _info._CTM.c, _info._CTM.d, _info._CTM.e,