]> OCCT Git - occt-copy.git/commitdiff
0026650: Coding rules - fix misprint in NCollection_Vec3::operator/()
authorkgv <kgv@opencascade.com>
Mon, 7 Sep 2015 06:31:35 +0000 (09:31 +0300)
committerabv <abv@opencascade.com>
Fri, 11 Sep 2015 15:11:54 +0000 (18:11 +0300)
src/BVH/BVH.cxx
src/NCollection/NCollection_Vec3.hxx

index 48fd7c09eb60c56d061d21e7fa40373934ca5b63..e6bf734645842ef58e7831f71f4fcf0680a6af9f 100644 (file)
 
 // Specific instantiations of struct templates to avoid compilation warnings
 
+template class NCollection_Vec2<Standard_Real>;
+template class NCollection_Vec3<Standard_Real>;
+template class NCollection_Vec4<Standard_Real>;
+
 template class BVH_Box<Standard_Real, 2>;
 template class BVH_Box<Standard_Real, 3>;
 template class BVH_Box<Standard_Real, 4>;
index e0568a25c8aab9f21de02ab37838446188aa6cac..a666aa243bdd534cc36834b1bd5633bbb2e13f25 100644 (file)
@@ -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;
   }