diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-23 10:38:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-23 13:42:03 +0200 |
commit | 3d9f291cd336dc59d8582e349d5f9e8e86776703 (patch) | |
tree | e286e01cc4d285adfcb166cdff4e14b1833a9cea | |
parent | e2b16c5660a8f3f72c1d1ba74ce565e8628b3dbb (diff) |
loplugin:returnconstval in tools
Change-Id: Ic00c0a6788e65ba2b50e93d49592e67596354f96
Reviewed-on: https://gerrit.libreoffice.org/77998
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/tools/b3dtrans.hxx | 4 | ||||
-rw-r--r-- | include/tools/wldcrd.hxx | 2 | ||||
-rw-r--r-- | tools/source/generic/b3dtrans.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/tools/b3dtrans.hxx b/include/tools/b3dtrans.hxx index e42c7efbb76a..2f6752e0848a 100644 --- a/include/tools/b3dtrans.hxx +++ b/include/tools/b3dtrans.hxx @@ -121,8 +121,8 @@ public: void CalcViewport(); // Direct accessors for miscellaneous transformations - const basegfx::B3DPoint WorldToEyeCoor(const basegfx::B3DPoint& rVec); - const basegfx::B3DPoint EyeToWorldCoor(const basegfx::B3DPoint& rVec); + basegfx::B3DPoint WorldToEyeCoor(const basegfx::B3DPoint& rVec); + basegfx::B3DPoint EyeToWorldCoor(const basegfx::B3DPoint& rVec); static void Frustum( basegfx::B3DHomMatrix& rTarget, diff --git a/include/tools/wldcrd.hxx b/include/tools/wldcrd.hxx index 9ff2a5b8ffd6..5fc3d87e4ab5 100644 --- a/include/tools/wldcrd.hxx +++ b/include/tools/wldcrd.hxx @@ -44,7 +44,7 @@ public: { } - const OUString getGlob() const + OUString getGlob() const { return OStringToOUString(aWildString, osl_getThreadTextEncoding()); } diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx index a896e9f1b7df..b8e29be31d4a 100644 --- a/tools/source/generic/b3dtrans.cxx +++ b/tools/source/generic/b3dtrans.cxx @@ -334,14 +334,14 @@ void B3dTransformationSet::SetViewportRectangle(tools::Rectangle const & rRect, // direct access to various transformations -const basegfx::B3DPoint B3dTransformationSet::WorldToEyeCoor(const basegfx::B3DPoint& rVec) +basegfx::B3DPoint B3dTransformationSet::WorldToEyeCoor(const basegfx::B3DPoint& rVec) { basegfx::B3DPoint aVec(rVec); aVec *= maOrientation; return aVec; } -const basegfx::B3DPoint B3dTransformationSet::EyeToWorldCoor(const basegfx::B3DPoint& rVec) +basegfx::B3DPoint B3dTransformationSet::EyeToWorldCoor(const basegfx::B3DPoint& rVec) { basegfx::B3DPoint aVec(rVec); aVec *= maInvOrientation; |