diff --git a/qt/widgets/common/inc/MantidQtWidgets/Common/Message.h b/qt/widgets/common/inc/MantidQtWidgets/Common/Message.h
index 8c79989fe990bfa55e2a7fe7762c4af21f382789..366567d53e59beed7afa322212925f7d6f271860 100644
--- a/qt/widgets/common/inc/MantidQtWidgets/Common/Message.h
+++ b/qt/widgets/common/inc/MantidQtWidgets/Common/Message.h
@@ -49,7 +49,7 @@ public:
   /// Copy constructor
   Message(const Message &msg);
   /// Copy assignment
-  Message& operator=(const Message &msg);
+  Message &operator=(const Message &msg);
 
 public:
   /// @returns The message text