diff --git a/PyIlmBase/PyImath/PyImathBox.cpp b/PyIlmBase/PyImath/PyImathBox.cpp index 910f7438fd..09769ddbff 100644 --- a/PyIlmBase/PyImath/PyImathBox.cpp +++ b/PyIlmBase/PyImath/PyImathBox.cpp @@ -356,8 +356,8 @@ register_Box2() .def_readwrite("max",&Box::max) .def("min", &boxMin) .def("max", &boxMax) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__repr__", &Box2_repr) .def("makeEmpty",&Box::makeEmpty,"makeEmpty() make the box empty") .def("makeInfinite",&Box::makeInfinite,"makeInfinite() make the box cover all space") @@ -416,8 +416,8 @@ register_Box3() .def("__init__", make_constructor(boxConstructor)) .def_readwrite("min",&Box::min) .def_readwrite("max",&Box::max) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__mul__", &mulM44) .def("__mul__", &mulM44) .def("__imul__", &imulM44,return_internal_reference<>()) diff --git a/PyIlmBase/PyImath/PyImathColor3.cpp b/PyIlmBase/PyImath/PyImathColor3.cpp index e4322eb3b0..067e76c415 100644 --- a/PyIlmBase/PyImath/PyImathColor3.cpp +++ b/PyIlmBase/PyImath/PyImathColor3.cpp @@ -593,8 +593,8 @@ register_Color3() .def_readwrite("b", &Color3::z) .def("__str__", &color3_str) .def("__repr__", &color3_repr) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__iadd__", &iadd,return_internal_reference<>()) .def("__add__", &add) .def("__add__", &addTuple) diff --git a/PyIlmBase/PyImath/PyImathColor4.cpp b/PyIlmBase/PyImath/PyImathColor4.cpp index ca31af729d..4604658b11 100644 --- a/PyIlmBase/PyImath/PyImathColor4.cpp +++ b/PyIlmBase/PyImath/PyImathColor4.cpp @@ -592,8 +592,8 @@ register_Color4() .def_readwrite("a", &Color4::a) .def("__str__", &color4_str) .def("__repr__", &color4_repr) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__iadd__", &iadd,return_internal_reference<>()) .def("__add__", &add) .def("__add__", &addTuple) diff --git a/PyIlmBase/PyImath/PyImathFrustum.cpp b/PyIlmBase/PyImath/PyImathFrustum.cpp index 8897bdcdb0..e931c42936 100644 --- a/PyIlmBase/PyImath/PyImathFrustum.cpp +++ b/PyIlmBase/PyImath/PyImathFrustum.cpp @@ -306,8 +306,8 @@ register_Frustum() .def(init<>("Frustum() default construction")) .def(init("Frustum(nearPlane,farPlane,left,right,top,bottom,ortho) construction")) .def(init("Frustum(nearPlane,farPlane,fovx,fovy,aspect) construction")) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__repr__",&Frustum_repr) .def("set", set1, "F.set(nearPlane, farPlane, left, right, top, bottom, " diff --git a/PyIlmBase/PyImath/PyImathMatrix33.cpp b/PyIlmBase/PyImath/PyImathMatrix33.cpp index e1e4412e16..3046cad6c1 100644 --- a/PyIlmBase/PyImath/PyImathMatrix33.cpp +++ b/PyIlmBase/PyImath/PyImathMatrix33.cpp @@ -905,8 +905,8 @@ register_Matrix33() .def("minorOf",&Matrix33::minorOf,"minorOf() return the matrix minor of the (row,col) element of this matrix") .def("fastMinor",&Matrix33::fastMinor,"fastMinor() return the matrix minor using the specified rows and columns of this matrix") .def("determinant",&Matrix33::determinant,"determinant() return the determinant of this matrix") - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__iadd__", &iadd33,return_internal_reference<>()) .def("__iadd__", &iadd33,return_internal_reference<>()) .def("__iadd__", &iadd33T,return_internal_reference<>()) diff --git a/PyIlmBase/PyImath/PyImathMatrix44.cpp b/PyIlmBase/PyImath/PyImathMatrix44.cpp index edb66b1f9b..fa0276ad30 100644 --- a/PyIlmBase/PyImath/PyImathMatrix44.cpp +++ b/PyIlmBase/PyImath/PyImathMatrix44.cpp @@ -1004,8 +1004,8 @@ register_Matrix44() .def("inverse",&inverse44,inverse44_overloads("inverse() return a inverted copy of this matrix")) .def("gjInvert",&gjInvert44,gjInvert44_overloads("gjInvert() invert this matrix")[return_internal_reference<>()]) .def("gjInverse",&gjInverse44,gjInverse44_overloads("gjInverse() return a inverted copy of this matrix")) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__iadd__", &iadd44,return_internal_reference<>()) .def("__iadd__", &iadd44,return_internal_reference<>()) .def("__iadd__", &iadd44T,return_internal_reference<>()) diff --git a/PyIlmBase/PyImath/PyImathQuat.cpp b/PyIlmBase/PyImath/PyImathQuat.cpp index e1e70c1e26..6ac775faf4 100644 --- a/PyIlmBase/PyImath/PyImathQuat.cpp +++ b/PyIlmBase/PyImath/PyImathQuat.cpp @@ -524,8 +524,8 @@ register_Quat() .def ("__itruediv__", &idivT, return_internal_reference<>()) .def ("__iadd__", &iadd, return_internal_reference<>()) .def ("__isub__", &isub, return_internal_reference<>()) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def ("__rmul__", &rmulM33) .def ("__mul__", &mulM33) .def ("__mul__", &mul) diff --git a/PyIlmBase/PyImath/PyImathShear.cpp b/PyIlmBase/PyImath/PyImathShear.cpp index c809e0c8cb..95ad2388c1 100644 --- a/PyIlmBase/PyImath/PyImathShear.cpp +++ b/PyIlmBase/PyImath/PyImathShear.cpp @@ -533,8 +533,8 @@ register_Shear() .def("__div__",&divT) .def("__truediv__",&div) .def("__truediv__",&divT) - .def(self == self) - .def(self != self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def("__str__",&Shear_str) .def("__repr__",&Shear_repr) .def("setValue", setValue1) diff --git a/PyIlmBase/PyImath/PyImathStringArray.cpp b/PyIlmBase/PyImath/PyImathStringArray.cpp index 2ad85242c2..13e98349e4 100644 --- a/PyIlmBase/PyImath/PyImathStringArray.cpp +++ b/PyIlmBase/PyImath/PyImathStringArray.cpp @@ -304,10 +304,10 @@ void register_StringArrays() .def("__setitem__", &StringArray::setitem_string_vector) .def("__setitem__", &StringArray::setitem_string_vector_mask) .def("__len__",&StringArray::len) - .def(self == self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. .def(self == other()) .def(other() == self) - .def(self != self) + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def(self != other()) .def(other() != self) ; @@ -324,10 +324,10 @@ void register_StringArrays() .def("__setitem__", &WstringArray::setitem_string_vector) .def("__setitem__", &WstringArray::setitem_string_vector_mask) .def("__len__",&WstringArray::len) - .def(self == self) + .def(self == self) // NOSONAR - suppress SonarCloud bug report. .def(self == other()) .def(other() == self) - .def(self != self) + .def(self != self) // NOSONAR - suppress SonarCloud bug report. .def(self != other()) .def(other() != self) ;