From 50196127900e4986b1d968bf4d968d42f227e954 Mon Sep 17 00:00:00 2001
From: David Fairbrother <DavidFair@users.noreply.github.com>
Date: Wed, 4 Jul 2018 13:17:56 +0100
Subject: [PATCH] Re #22714 Catch exception by ref

---
 MantidPlot/src/ProjectRecovery.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MantidPlot/src/ProjectRecovery.cpp b/MantidPlot/src/ProjectRecovery.cpp
index 3b73fc805a4..e8e689eeb22 100644
--- a/MantidPlot/src/ProjectRecovery.cpp
+++ b/MantidPlot/src/ProjectRecovery.cpp
@@ -335,7 +335,7 @@ bool ProjectRecovery::openInEditor(const Poco::Path &inputFolder) {
 void ProjectRecovery::projectSavingThreadWrapper() {
   try {
     projectSavingThread();
-  } catch (Mantid::API::Algorithm::CancelException) {
+  } catch (Mantid::API::Algorithm::CancelException &) {
     return;
   } catch (std::exception const &e) {
     std::string preamble("Project recovery has stopped. Please report"
-- 
GitLab