From 9ecddb13e30462fc94259b2bb559e1a91e9dd64c Mon Sep 17 00:00:00 2001
From: Alex Buts <Alex.Buts@stfc.ac.uk>
Date: Fri, 11 Nov 2011 20:35:14 +0000
Subject: [PATCH] refs #3925 fixing unix warnings

---
 Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp    | 2 ++
 Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp b/Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp
index a97d72ed3c4..307296608ae 100644
--- a/Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp
+++ b/Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp
@@ -221,6 +221,8 @@ void ConvertToQNDany::exec(){
     std::vector<std::string> dim_selected;
     known_algorithms algo_id = identify_requested_alg(dim_names_availible, Q_dim_requested,other_dim,n_activated_dimensions);
 
+    // call selected algorithm. 
+    alg_selector[algo_id](this);
     return;
    
 }
diff --git a/Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h b/Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h
index ea3c790249e..beb48e79d39 100644
--- a/Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h
+++ b/Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h
@@ -212,7 +212,8 @@ void testFuncSelector()
 void testExecSelection()
 {
     
-    TS_ASSERT_THROWS_NOTHING(pAlg->execute());
+    pAlg->setRethrows(true);
+    TS_ASSERT_THROWS(pAlg->execute(),Kernel::Exception::NotImplementedError);
 }
 
 
-- 
GitLab