[Libreoffice-commits] core.git: include/tools tools/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 23 11:43:07 UTC 2019


 include/tools/b3dtrans.hxx        |    4 ++--
 include/tools/wldcrd.hxx          |    2 +-
 tools/source/generic/b3dtrans.cxx |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 3d9f291cd336dc59d8582e349d5f9e8e86776703
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Aug 23 10:38:09 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Aug 23 13:42:03 2019 +0200

    loplugin:returnconstval in tools
    
    Change-Id: Ic00c0a6788e65ba2b50e93d49592e67596354f96
    Reviewed-on: https://gerrit.libreoffice.org/77998
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

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;


More information about the Libreoffice-commits mailing list