management+util: add 'override' specifier where applicable
Change-Id: Iafb9c2c59026e4268522120f405585ba35fac248
diff --git a/src/management/nfd-control-command.cpp b/src/management/nfd-control-command.cpp
index 307810d..88db4f9 100644
--- a/src/management/nfd-control-command.cpp
+++ b/src/management/nfd-control-command.cpp
@@ -31,6 +31,8 @@
{
}
+ControlCommand::~ControlCommand() = default;
+
void
ControlCommand::validateRequest(const ControlParameters& parameters) const
{
diff --git a/src/management/nfd-control-command.hpp b/src/management/nfd-control-command.hpp
index 48a05ee..dfe876b 100644
--- a/src/management/nfd-control-command.hpp
+++ b/src/management/nfd-control-command.hpp
@@ -47,6 +47,9 @@
}
};
+ virtual
+ ~ControlCommand();
+
/** \brief validate request parameters
* \throw ArgumentError if parameters are invalid
*/
@@ -142,12 +145,13 @@
FaceCreateCommand();
virtual void
- applyDefaultsToRequest(ControlParameters& parameters) const;
+ applyDefaultsToRequest(ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
};
+
/**
* \ingroup management
* \brief represents a faces/update command
@@ -159,12 +163,13 @@
FaceUpdateCommand();
virtual void
- validateRequest(const ControlParameters& parameters) const;
+ validateRequest(const ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
};
+
/**
* \ingroup management
* \brief represents a faces/destroy command
@@ -176,12 +181,13 @@
FaceDestroyCommand();
virtual void
- validateRequest(const ControlParameters& parameters) const;
+ validateRequest(const ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
};
+
/**
* \ingroup management
* \brief Base class for faces/[*]-local-control commands
@@ -190,10 +196,10 @@
{
public:
virtual void
- validateRequest(const ControlParameters& parameters) const;
+ validateRequest(const ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
protected:
explicit
@@ -236,10 +242,10 @@
FibAddNextHopCommand();
virtual void
- applyDefaultsToRequest(ControlParameters& parameters) const;
+ applyDefaultsToRequest(ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
};
@@ -254,10 +260,10 @@
FibRemoveNextHopCommand();
virtual void
- applyDefaultsToRequest(ControlParameters& parameters) const;
+ applyDefaultsToRequest(ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
};
@@ -284,10 +290,10 @@
StrategyChoiceUnsetCommand();
virtual void
- validateRequest(const ControlParameters& parameters) const;
+ validateRequest(const ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
};
@@ -302,10 +308,10 @@
RibRegisterCommand();
virtual void
- applyDefaultsToRequest(ControlParameters& parameters) const;
+ applyDefaultsToRequest(ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
};
@@ -320,10 +326,10 @@
RibUnregisterCommand();
virtual void
- applyDefaultsToRequest(ControlParameters& parameters) const;
+ applyDefaultsToRequest(ControlParameters& parameters) const override;
virtual void
- validateResponse(const ControlParameters& parameters) const;
+ validateResponse(const ControlParameters& parameters) const override;
};
} // namespace nfd