Skip to content

Commit

Permalink
refs #5552 trying to fix Unix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Aug 4, 2012
1 parent 32081fd commit 7a50e2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ namespace Mantid

/// the accessor verify if there are boxes in box-splitter cash which need splitting;
bool ifNeedsSplitting()const{return m_needSplitting;}
/// method splits list of boxes
void splitList(Kernel::ThreadScheduler * ts){(this->*(mdBoxListSplitter[m_NDimensions]))();}
/// method splits list of boxes not yet uses thread sheduler but may be later
void splitList(Kernel::ThreadScheduler * ){(this->*(mdBoxListSplitter[m_NDimensions]))();}
private:
/// maximal nuber of dimensions, currently supported by the class;
enum{ MAX_N_DIM=8};
Expand Down
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/MDEvents/test/MDBoxToChangeTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MDBoxToChangeTest : public CxxTest::TestSuite
void testConstructor()
{
rootBox = makeMDBox2();
MDBoxToChange<MDEvent<2>,2> * pBoxChanger;
MDBoxToChange<MDEvent<2>,2> * pBoxChanger(NULL);
TS_ASSERT_THROWS_NOTHING((pBoxChanger = new MDBoxToChange<MDEvent<2> , 2>()));
delete pBoxChanger;
TS_ASSERT_THROWS_NOTHING((pBoxChanger = new MDBoxToChange<MDEvent<2> , 2>(dynamic_cast<MDBox<MDEvent<2>,2>*>(rootBox),0)));
Expand All @@ -46,14 +46,14 @@ void testSplitRootToGridbox()

void testSplitAMemberToGridbox()
{
MDBoxBase<MDEvent<2>,2>* aChildBox;
MDBoxBase<MDEvent<2>,2>* aChildBox(NULL);
TS_ASSERT_THROWS_NOTHING(aChildBox = (dynamic_cast<MDGridBox<MDEvent<2>,2>*>(rootBox))->getChild(10));

MDBoxToChange<MDEvent<2>,2> BoxToSplit(dynamic_cast<MDBox<MDEvent<2>,2>*>(aChildBox),10);

TSM_ASSERT("parent for the box to split should be rootbox: ",(BoxToSplit.getParent() == rootBox));

MDBoxBase<MDEvent<2>,2>* aGridBox;
MDBoxBase<MDEvent<2>,2>* aGridBox(NULL);
TS_ASSERT_THROWS_NOTHING(aGridBox=BoxToSplit.splitToGridBox());

TSM_ASSERT("This should be a grid box",(dynamic_cast<MDGridBox<MDEvent<2>,2>*>(aGridBox)));
Expand Down

0 comments on commit 7a50e2e

Please sign in to comment.