Commit 2a86c10b authored by Nick Draper's avatar Nick Draper
Browse files

cleng formatting changes re #15281

parent 28ea09e0
......@@ -79,7 +79,7 @@ struct RPB_STRUCT {
int r_prop; ///< RB (proposal) number
int spare[10]; ///< to pad out to 32*4 bytes
/// constructor
// cppcheck-suppress memsetClassFloat
RPB_STRUCT() { memset(this, 0, sizeof(RPB_STRUCT)); }
};
......@@ -233,7 +233,7 @@ struct DHDR_STRUCT {
int unused[26]; ///< to bring size to 32*4 bytes
/// constructor
DHDR_STRUCT() {
// cppcheck-suppress memsetClassFloat
// cppcheck-suppress memsetClassFloat
memset(this, 0, sizeof(DHDR_STRUCT));
d_comp = 1;
d_offset = 1 + 32;
......
......@@ -64,10 +64,10 @@ void export_V3D() {
"Calculates the squared length of the vector")
.def("__add__", &V3D::operator+, (arg("left"), arg("right")))
.def("__iadd__", &V3D::operator+=, return_self<>(),
(arg("self"), arg("other")))
(arg("self"), arg("other")))
.def("__sub__", &V3D::operator-, (arg("left"), arg("right")))
.def("__isub__", &V3D::operator-=, return_self<>(),
(arg("self"), arg("other")))
(arg("self"), arg("other")))
.def(self * self)
.def(self *= self)
// cppcheck-suppress duplicateExpression
......
......@@ -104,10 +104,10 @@ void export_VMD() {
// object address
.def("__add__", &VMD::operator+, (arg("left"), arg("right")))
.def("__iadd__", &VMD::operator+=, return_self<>(),
(arg("self"), arg("other")))
(arg("self"), arg("other")))
.def("__sub__", &VMD::operator-, (arg("left"), arg("right")))
.def("__isub__", &VMD::operator-=, return_self<>(),
(arg("self"), arg("other")))
(arg("self"), arg("other")))
.def(self * self)
.def(self *= self)
// cppcheck-suppress duplicateExpression
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment