Skip to content

Commit

Permalink
[socketcan_interface] Address inconsistent missing overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
wxmerkt committed Oct 13, 2022
1 parent d7f9031 commit 7912343
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions socketcan_interface/include/socketcan_interface/threading.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ template<typename WrappedInterface> class ThreadedInterface : public WrappedInte
}
}
public:
[[deprecated("provide settings explicitly")]] virtual bool init(const std::string &device, bool loopback) override {
[[deprecated("provide settings explicitly")]] bool init(const std::string &device, bool loopback) override {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
if(!thread_ && WrappedInterface::init(device, loopback)){
Expand All @@ -60,7 +60,7 @@ template<typename WrappedInterface> class ThreadedInterface : public WrappedInte
return WrappedInterface::getState().isReady();
#pragma GCC diagnostic pop
}
virtual bool init(const std::string &device, bool loopback, SettingsConstSharedPtr settings) override {
bool init(const std::string &device, bool loopback, SettingsConstSharedPtr settings) override {
if(!thread_ && WrappedInterface::init(device, loopback, settings)){
StateWaiter waiter(this);
thread_.reset(new boost::thread(&ThreadedInterface::run_thread, this));
Expand All @@ -69,7 +69,7 @@ template<typename WrappedInterface> class ThreadedInterface : public WrappedInte
return WrappedInterface::getState().isReady();
}

virtual void shutdown(){
void shutdown() override{
WrappedInterface::shutdown();
shutdown_internal();
}
Expand Down

0 comments on commit 7912343

Please sign in to comment.