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