Skip to content

Commit

Permalink
refs #6852 Stupid warning on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Apr 16, 2013
1 parent f1074a2 commit fe91008
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ void testCopyMethadata()
subAlgo.setPropertyValue("MinValues","-10");
subAlgo.setPropertyValue("MaxValues","10");

bool createNewTargetWs;
bool createNewTargetWs(false);
std::vector<std::string> Q_modes = MDEvents::MDTransfFactory::Instance().getKeys();
std::string dE_mode = Kernel::DeltaEMode().asString(Kernel::DeltaEMode::Elastic);
MDWSTransform QScl;
std::vector<std::string> QScales = QScl.getQScalings();

MDEvents::MDWSDescription targWSDescr;
MDEvents::MDWSDescription targWSDescr;
TS_ASSERT_THROWS_NOTHING(createNewTargetWs=subAlgo.buildTargetWSDescription(spws,Q_modes[0],dE_mode,std::vector<std::string>(),QScales[CnvrtToMD::NoScaling],targWSDescr));

TSM_ASSERT("as spws is null pointer, this should request creating new workspace ",createNewTargetWs)
Expand Down

0 comments on commit fe91008

Please sign in to comment.