Minor style fixes in Linux tests

This commit is contained in:
Pavel Kirienko
2014-04-19 19:27:17 +04:00
parent f8883e0bb2
commit e3aa0d91c8
4 changed files with 7 additions and 3 deletions
@@ -20,7 +20,7 @@ struct OstreamColorizer
Magenta = 35,
Default = 39
};
OstreamColorizer(Color color = Default) : color_(color) { }
explicit OstreamColorizer(Color color = Default) : color_(color) { }
friend std::ostream& operator<<(std::ostream& os, const OstreamColorizer& mod)
{
return os << "\033[" << int(mod.color_) << "m";
@@ -94,7 +94,7 @@ class Monitor : public uavcan::NodeStatusMonitor
}
public:
Monitor(uavcan_linux::NodePtr node)
explicit Monitor(uavcan_linux::NodePtr node)
: uavcan::NodeStatusMonitor(*node)
, timer_(node->makeTimer(uavcan::MonotonicDuration::fromMSec(500),
std::bind(&Monitor::redraw, this, std::placeholders::_1)))