Skip to content

Commit

Permalink
Refs #8385 cast variable to correct type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Nov 7, 2013
1 parent 09587db commit 028d236
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void loadGroupingFromXML(const std::string& filename, Grouping& g)

for (size_t ip = 0; ip < pairs->length(); ip++)
{
Element* pPairElem = static_cast<Element*>(pairs->item(static_cast<long>(ig)));
Element* pPairElem = static_cast<Element*>(pairs->item(static_cast<long>(ip)));

if ( !pPairElem->hasAttribute("name") )
throw Mantid::Kernel::Exception::FileError("Pair element without name" , filename);
Expand Down

0 comments on commit 028d236

Please sign in to comment.