summaryrefslogtreecommitdiffstats
path: root/include/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 15:28:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 19:00:57 +0200
commit7183b3ba237dc7718501acb512d5ae1c5d0d5f6b (patch)
treeea8b5535f6dbed45f54fa27c8dd492a327644626 /include/basegfx
parentRelated: tdf#141633 drawing buttons to outputdevice affects later drawing (diff)
downloadcore-7183b3ba237dc7718501acb512d5ae1c5d0d5f6b.tar.gz
core-7183b3ba237dc7718501acb512d5ae1c5d0d5f6b.zip
loplugin:constmethod handle more cases
remove some of the naming limitations, and handle pointer parameters better. I only let the plugin run up till vcl/ Change-Id: Ice916e0157031ab531c47f10778f406b07966251 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122892 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/basegfx')
-rw-r--r--include/basegfx/matrix/b2dhommatrix.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/basegfx/matrix/b2dhommatrix.hxx b/include/basegfx/matrix/b2dhommatrix.hxx
index 60b32fb09f00..d7fa5b4421ef 100644
--- a/include/basegfx/matrix/b2dhommatrix.hxx
+++ b/include/basegfx/matrix/b2dhommatrix.hxx
@@ -61,17 +61,17 @@ namespace basegfx
}
// Convenience accessor for value at 0,0 position in the matrix
- double a() { return get(0,0); }
+ double a() const { return get(0,0); }
// Convenience accessor for value at 1,0 position in the matrix
- double b() { return get(1,0); }
+ double b() const { return get(1,0); }
// Convenience accessor for value at 0,1 position in the matrix
- double c() { return get(0,1); }
+ double c() const { return get(0,1); }
// Convenience accessor for value at 1,1 position in the matrix
- double d() { return get(1,1); }
+ double d() const { return get(1,1); }
// Convenience accessor for value at 0,2 position in the matrix
- double e() { return get(0,2); }
+ double e() const { return get(0,2); }
// Convenience accessor for value at 1,2 position in the matrix
- double f() { return get(1,2); }
+ double f() const { return get(1,2); }
/** constructor to allow setting all needed values for a 3x2 matrix at once. The
parameter f_0x1 e.g. is the same as using set(0, 1, f)