From 7df52ce5fe955f1bca31cbb6d6a9c3c54fad384a Mon Sep 17 00:00:00 2001 From: Federico Montesino Pouzols <federico.montesino-pouzols@stfc.ac.uk> Date: Wed, 1 Apr 2015 15:05:53 +0100 Subject: [PATCH] used shared_ptr def constructor to make msvc happy, re #11467 --- Code/Mantid/Framework/Kernel/test/ComputeResourceInfoTest.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/Mantid/Framework/Kernel/test/ComputeResourceInfoTest.h b/Code/Mantid/Framework/Kernel/test/ComputeResourceInfoTest.h index 7de57cb1350..9e830ad03b0 100644 --- a/Code/Mantid/Framework/Kernel/test/ComputeResourceInfoTest.h +++ b/Code/Mantid/Framework/Kernel/test/ComputeResourceInfoTest.h @@ -23,11 +23,11 @@ public: TS_ASSERT_THROWS_NOTHING(cri = fac->computeResInfos()); TS_ASSERT_EQUALS(cri.size(), 0); - fac = NULL; - TS_ASSERT_THROWS(fac = createCRInfoInMinimalFacility( + boost::shared_ptr<FacilityInfo> another; + TS_ASSERT_THROWS(another = createCRInfoInMinimalFacility( "<computeResource fooAtt=\"barVal\"/>"), std::runtime_error); - TS_ASSERT(!fac); + TS_ASSERT(!another); } void test_noURLTag() { -- GitLab