Skip to content

Commit cf44721

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1d297bd commit cf44721

16 files changed

+27
-28
lines changed

include/sot/core/binary-op.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class BinaryOp : public Entity {
6565
op.addSpecificCommands(*this, commandMap);
6666
}
6767

68-
virtual ~BinaryOp(void){};
68+
virtual ~BinaryOp(void) {};
6969

7070
public: /* --- SIGNAL --- */
7171
SignalPtr<Tin1, sigtime_t> SIN1;

include/sot/core/derivator.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Derivator : public dynamicgraph::Entity {
6565
timestepSIN.setKeepReference(true);
6666
}
6767

68-
virtual ~Derivator(void){};
68+
virtual ~Derivator(void) {};
6969

7070
public: /* --- SIGNAL --- */
7171
dynamicgraph::SignalPtr<T, sigtime_t> SIN;

include/sot/core/feature-abstract.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class SOT_CORE_EXPORT FeatureAbstract : public Entity {
9090
/*! \brief Default constructor: the name of the class should be given. */
9191
FeatureAbstract(const std::string &name);
9292
/*! \brief Default destructor */
93-
virtual ~FeatureAbstract(void){};
93+
virtual ~FeatureAbstract(void) {};
9494

9595
/*! \name Methods returning the dimension of the feature.
9696
@{ */

include/sot/core/latch.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Latch : public Entity {
7575
docCommandVoid0("Turn off the latch")));
7676
}
7777

78-
virtual ~Latch(void){};
78+
virtual ~Latch(void) {};
7979
};
8080
} /* namespace sot */
8181
} /* namespace dynamicgraph */

include/sot/core/parameter-server.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class SOTParameterServer_EXPORT ParameterServer
6262
/* --- CONSTRUCTOR ---- */
6363
ParameterServer(const std::string &name);
6464

65-
~ParameterServer(){};
65+
~ParameterServer() {};
6666

6767
/// Initialize
6868
/// @param dt: control interval

include/sot/core/sequencer.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class SOTSEQUENCER_EXPORT Sequencer : public dynamicgraph::Entity {
6565
size_type eventType;
6666

6767
public:
68-
sotEventAbstract(const std::string &name) : name(name){};
68+
sotEventAbstract(const std::string &name) : name(name) {};
6969
virtual ~sotEventAbstract(void) {}
7070
virtual const std::string &getName() const { return name; }
7171
size_type getEventType() const { return eventType; }

include/sot/core/smooth-reach.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class SOTSMOOTHREACH_EXPORT SmoothReach : public dynamicgraph::Entity {
5858

5959
public: /* --- CONSTRUCTION --- */
6060
SmoothReach(const std::string &name);
61-
virtual ~SmoothReach(void){};
61+
virtual ~SmoothReach(void) {};
6262

6363
public: /* --- SIGNAL --- */
6464
dynamicgraph::SignalPtr<dynamicgraph::Vector, sigtime_t> startSIN;

include/sot/core/sot.hh

+1-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ class SOTSOT_CORE_EXPORT Sot : public Entity {
101101
public:
102102
/*! \brief Default constructor */
103103
Sot(const std::string &name);
104-
~Sot(void) { /* TODO!! */
105-
}
104+
~Sot(void) { /* TODO!! */ }
106105

107106
/*! \name Methods to handle the stack.
108107
@{

include/sot/core/task-abstract.hh

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class SOT_CORE_EXPORT TaskAbstract : public dynamicgraph::Entity {
5353
/* Use a derivative of this class to store computational memory. */
5454
class MemoryTaskAbstract {
5555
public:
56-
MemoryTaskAbstract(void){};
57-
virtual ~MemoryTaskAbstract(void){};
56+
MemoryTaskAbstract(void) {};
57+
virtual ~MemoryTaskAbstract(void) {};
5858

5959
public:
6060
virtual void display(std::ostream &os) const = 0;

include/sot/core/unary-op.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class UnaryOp : public Entity {
5252
op.addSpecificCommands(*this, commandMap);
5353
}
5454

55-
virtual ~UnaryOp(void){};
55+
virtual ~UnaryOp(void) {};
5656

5757
public: /* --- SIGNAL --- */
5858
SignalPtr<Tin, sigtime_t> SIN;

include/sot/core/variadic-op.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class VariadicOp : public VariadicAbstract<typename Operator::Tin,
159159
op.initialize(this, this->commandMap);
160160
}
161161

162-
virtual ~VariadicOp(void){};
162+
virtual ~VariadicOp(void) {};
163163

164164
protected:
165165
Tout &computeOperation(Tout &res, sigtime_t time) {

src/filters/filter-differentiator.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ void FilterDifferentiator::init(const double &timestep, const size_type &xSize,
9797
m_filter =
9898
new CausalFilter(timestep, xSize, filter_numerator, filter_denominator);
9999

100-
LOG("Filtering started with "
101-
<< "Numerator " << filter_numerator << std::endl
102-
<< "Denominator" << filter_denominator << std::endl);
100+
LOG("Filtering started with " << "Numerator " << filter_numerator << std::endl
101+
<< "Denominator" << filter_denominator
102+
<< std::endl);
103103
return;
104104
}
105105

106106
void FilterDifferentiator::switch_filter(
107107
const Eigen::VectorXd &filter_numerator,
108108
const Eigen::VectorXd &filter_denominator) {
109-
LOG("Filter switched with "
110-
<< "Numerator " << filter_numerator << std::endl
111-
<< "Denominator" << filter_denominator << std::endl
112-
<< "at time" << m_xSIN.getTime());
109+
LOG("Filter switched with " << "Numerator " << filter_numerator << std::endl
110+
<< "Denominator" << filter_denominator
111+
<< std::endl
112+
<< "at time" << m_xSIN.getTime());
113113
m_filter->switch_filter(filter_numerator, filter_denominator);
114114
}
115115

tests/tools/dummy-sot-external-interface.hh

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ typedef dynamicgraph::size_type size_type;
1919
class DummySotExternalInterface
2020
: public dynamicgraph::sot::AbstractSotExternalInterface {
2121
public:
22-
DummySotExternalInterface(){};
22+
DummySotExternalInterface() {};
2323

24-
virtual ~DummySotExternalInterface(){};
24+
virtual ~DummySotExternalInterface() {};
2525

2626
virtual void setupSetSensors(
2727
std::map<std::string, dynamicgraph::sot::SensorValues> &sensorsIn);

tests/tools/plugin.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class Plugin : public PluginAbstract {
2727
AbstractSotExternalInterface *sotController_;
2828

2929
public:
30-
Plugin(){};
31-
~Plugin(){};
30+
Plugin() {};
31+
~Plugin() {};
3232

3333
void Initialization(std::string &dynamicLibraryName) {
3434
// Load the SotRobotBipedController library.

tests/tools/plugin.hh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
class PluginAbstract {
55
public:
6-
PluginAbstract(){};
7-
virtual ~PluginAbstract(){};
6+
PluginAbstract() {};
7+
virtual ~PluginAbstract() {};
88
virtual void Initialization(std::string &astr) = 0;
99
};
1010

tests/tools/test_abstract_interface.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class PluginLoader {
3030
std::string dynamicLibraryName_;
3131

3232
public:
33-
PluginLoader(){};
34-
~PluginLoader(){};
33+
PluginLoader() {};
34+
~PluginLoader() {};
3535

3636
int parseOptions(int argc, char *argv[]) {
3737
po::options_description desc("Allowed options");

0 commit comments

Comments
 (0)