Skip to content

Commit ba86d54

Browse files
pre-commit-ci[bot]jorisv
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 09c1821 commit ba86d54

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

include/eigenpy/deprecation-policy.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ constexpr PyObject *deprecationTypeToPyObj(DeprecationType dep) {
1919
return PyExc_DeprecationWarning;
2020
case DeprecationType::FUTURE:
2121
return PyExc_FutureWarning;
22-
default: // The switch handles all cases explicitly, this should never be triggered.
23-
throw std::invalid_argument("Undefined DeprecationType - this should never be triggered.");
22+
default: // The switch handles all cases explicitly, this should never be
23+
// triggered.
24+
throw std::invalid_argument(
25+
"Undefined DeprecationType - this should never be triggered.");
2426
}
2527
}
2628

unittest/bind_virtual_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct VirtualClassWrapper : MyVirtualClass, bp::wrapper<MyVirtualClass> {
7474
shared_ptr<MyVirtualData> createData() const override {
7575
if (bp::override fo = this->get_override("createData")) {
7676
bp::object result = fo();
77-
return bp::extract<shared_ptr<MyVirtualData>>(result);
77+
return bp::extract<shared_ptr<MyVirtualData> >(result);
7878
}
7979
return default_createData();
8080
}

0 commit comments

Comments
 (0)