mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
test_rtt: Fix cppcheck warnings
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
95610be274
commit
a5487f4210
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ protected:
|
|||
|
||||
public:
|
||||
Case(TestRTT *n, int id, int rate, int values, int limit,
|
||||
std::string filename)
|
||||
const std::string & filename)
|
||||
: node(n), id(id), rate(rate), values(values), limit(limit),
|
||||
filename(filename){};
|
||||
|
||||
|
@ -65,7 +65,7 @@ protected:
|
|||
|
||||
public:
|
||||
TestRTT(const uuid_t &id = {}, const std::string &name = "")
|
||||
: Node(id, name), task(CLOCK_MONOTONIC), formatter(nullptr) {}
|
||||
: Node(id, name), task(CLOCK_MONOTONIC), formatter(nullptr), stream(nullptr), cooldown(0), counter(-1) {}
|
||||
|
||||
virtual ~TestRTT(){};
|
||||
|
||||
|
|
|
@ -287,7 +287,7 @@ int TestRTT::_read(struct Sample *smps[], unsigned cnt) {
|
|||
task.setTimeout(cooldown);
|
||||
}
|
||||
|
||||
current_case++;
|
||||
++current_case;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue