Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: xfa/src/fxgraphics/src/fx_graphics.cpp

Issue 1508883003: Replace more static casts in FWL (part 3) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Remove Transfer() default args since they're always present. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/src/fwl/src/lightwidget/listbox.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fxgraphics/src/fx_graphics.cpp
diff --git a/xfa/src/fxgraphics/src/fx_graphics.cpp b/xfa/src/fxgraphics/src/fx_graphics.cpp
index 990e7f47e8b374757e3089aad9813eca8617dc08..69b0c2ad9b803bef00a0ff3defc2e0cce3dcb157 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,
« no previous file with comments | « xfa/src/fwl/src/lightwidget/listbox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698