From cc5f85f8c9a99d050bfacf8fa4b01efee3b305ec 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 15844cd07b..1a29545401 100644 --- a/src/BVH/BVH.cxx +++ b/src/BVH/BVH.cxx @@ -25,6 +25,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; }