From: kgv Date: Mon, 7 Sep 2015 06:31:35 +0000 (+0300) Subject: 0026650: Coding rules - fix misprint in NCollection_Vec3::operator/() X-Git-Tag: V7_0_0_beta~303 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=cc5f85f8c9a99d050bfacf8fa4b01efee3b305ec;p=occt-copy.git 0026650: Coding rules - fix misprint in NCollection_Vec3::operator/() --- 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; }