Communication: Remove unused parameter
parent
1ba3eded09
commit
538d6ec0c8
|
|
@ -126,13 +126,13 @@ public:
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
StreamOutput(const char* filename) :
|
StreamOutput(const char* filename) :
|
||||||
MessageCallback([](std::shared_ptr<Message> msg) {}),
|
MessageCallback([](std::shared_ptr<Message>) {}),
|
||||||
stream(
|
stream(
|
||||||
new std::ofstream(filename, std::ios::binary),
|
new std::ofstream(filename, std::ios::binary),
|
||||||
std::default_delete<std::ostream>()
|
std::default_delete<std::ostream>()
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
StreamOutput(std::ostream& os) : MessageCallback([](std::shared_ptr<Message> msg) {}), stream(&os, [](std::ostream*){}) {}
|
StreamOutput(std::ostream& os) : MessageCallback([](std::shared_ptr<Message>) {}), stream(&os, [](std::ostream*){}) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::unique_ptr<std::ostream, std::function<void(std::ostream*)>> stream;
|
std::unique_ptr<std::ostream, std::function<void(std::ostream*)>> stream;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue