summaryrefslogtreecommitdiffstats
path: root/src/RemoteControl.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-04 10:47:58 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-04 11:07:37 +0200
commit5953e2ce95dc0cb809d529c4103ae6b80f0248c0 (patch)
tree5ef857b37b4ab889e8d8f56c010283f77821a8c1 /src/RemoteControl.h
parent2e325d2c2a34ecda37636e67969ee1550e78fbba (diff)
downloaddabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.tar.gz
dabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.tar.bz2
dabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.zip
Remove some compilation warnings
Diffstat (limited to 'src/RemoteControl.h')
-rw-r--r--src/RemoteControl.h14
1 files changed, 9 insertions, 5 deletions
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