From a8dabcc5f71d37f94f4aef551d3a7d74ff36f23b Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 7 Sep 2015 09:31:35 +0300 Subject: [PATCH] 0026650: Coding rules - fix misprint in NCollection_Vec3::operator/() --- src/BVH/BVH.cxx | 4 ++++ src/NCollection/NCollection_Vec3.hxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BVH/BVH.cxx b/src/BVH/BVH.cxx index 48fd7c09eb..e6bf734645 100644 --- a/src/BVH/BVH.cxx +++ b/src/BVH/BVH.cxx @@ -23,6 +23,10 @@ // Specific instantiations of struct templates to avoid compilation warnings +template class NCollection_Vec2; +template class NCollection_Vec3; +template class NCollection_Vec4; + template class BVH_Box; template class BVH_Box; template class BVH_Box; diff --git a/src/NCollection/NCollection_Vec3.hxx b/src/NCollection/NCollection_Vec3.hxx index e0568a25c8..a666aa243b 100644 --- a/src/NCollection/NCollection_Vec3.hxx +++ b/src/NCollection/NCollection_Vec3.hxx @@ -284,7 +284,7 @@ public: //! Compute per-component division by scale factor. NCollection_Vec3 operator/ (const Element_t theInvFactor) { - NCollection_Vec3 aResult (this); + NCollection_Vec3 aResult (*this); return aResult /= theInvFactor; }