diff --git a/LHCbG4Tests/G4SamplingCaloTest/include/RunActionMessenger.hh b/LHCbG4Tests/G4SamplingCaloTest/include/RunActionMessenger.hh
index 722234d275cc906a6a0bcbae5505f9ab60d94ef9..74b7977683086df4356d008ac09caa60c0942010 100644
--- a/LHCbG4Tests/G4SamplingCaloTest/include/RunActionMessenger.hh
+++ b/LHCbG4Tests/G4SamplingCaloTest/include/RunActionMessenger.hh
@@ -49,12 +49,12 @@ class RunActionMessenger: public G4UImessenger
 public:
   RunActionMessenger(RunAction*);
   virtual ~RunActionMessenger();
-    
-  void SetNewValue(G4UIcommand*, G4String);
-    
+
+  void SetNewValue(G4UIcommand*, G4String) override;
+
 private:
   RunAction*          fRunAction;
-    
+
   G4UIdirectory*      fRunDir;
   G4UIcommand*        fAccCmd;
   G4UIcmdWithABool*   fLimCmd;