From 5953e2ce95dc0cb809d529c4103ae6b80f0248c0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 4 Apr 2014 10:47:58 +0200 Subject: Remove some compilation warnings --- src/RemoteControl.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/RemoteControl.h') diff --git a/src/RemoteControl.h b/src/RemoteControl.h index fd8d025..a9da7d7 100644 --- a/src/RemoteControl.h +++ b/src/RemoteControl.h @@ -58,7 +58,7 @@ class ParameterError : public std::exception { public: ParameterError(string message) : m_message(message) {} - ~ParameterError() throw() {}; + ~ParameterError() throw() {} const char* what() const throw() { return m_message.c_str(); } private: @@ -84,6 +84,8 @@ class BaseRemoteController { * restarted. */ virtual void restart() = 0; + + virtual ~BaseRemoteController() {} }; /* Objects that support remote control must implement the following class */ @@ -92,6 +94,8 @@ class RemoteControllable { RemoteControllable(string name) : m_name(name) {} + virtual ~RemoteControllable() {} + /* return a short name used to identify the controllable. * It might be used in the commands the user has to type, so keep * it short @@ -159,7 +163,7 @@ class RemoteControllerTelnet : public BaseRemoteController { m_cohort.push_back(controllable); } - virtual bool fault_detected() { return m_fault; }; + virtual bool fault_detected() { return m_fault; } virtual void restart(); @@ -255,11 +259,11 @@ class RemoteControllerTelnet : public BaseRemoteController { */ class RemoteControllerDummy : public BaseRemoteController { public: - void enrol(RemoteControllable* controllable) {}; + void enrol(RemoteControllable*) {} - bool fault_detected() { return false; }; + bool fault_detected() { return false; } - virtual void restart() {}; + virtual void restart() {} }; #endif -- cgit v1.2.3