Skip to content

Commit

Permalink
Fix function call & warning. Refs #5397
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Aug 3, 2012
1 parent 1c81861 commit 05a9755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TobyFitYVectorTest : public CxxTest::TestSuite
{
using namespace Mantid::MDAlgorithms;

TobyFitYVector *yVector; // TS_ macro doesn't work with stack construction & no default constructor
TobyFitYVector *yVector(NULL); // TS_ macro doesn't work with stack construction & no default constructor
TS_ASSERT_THROWS_NOTHING(yVector = new TobyFitYVector);

delete yVector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class RawFileMementoTest : public CxxTest::TestSuite
TS_ASSERT_THROWS_NOTHING(ws->run().getLogData("angle1")->value());
TS_ASSERT_THROWS_NOTHING(ws->run().getLogData("angle2")->value());

Goniometer & gon = ws->mutableRun().getGoniometer();
const Goniometer & gon = ws->run().getGoniometer();
TS_ASSERT_EQUALS( gon.getNumberAxes(), 2);

TS_ASSERT_EQUALS( gon.getAxis(0).name, "angle1");
Expand All @@ -112,4 +112,4 @@ class RawFileMementoTest : public CxxTest::TestSuite

};

#endif
#endif

0 comments on commit 05a9755

Please sign in to comment.