Skip to content
Snippets Groups Projects
Commit f61510f4 authored by Sofia Antony's avatar Sofia Antony
Browse files

re #1032 -fix for build failure,

parent 380f9ed0
No related merge requests found
......@@ -39,6 +39,7 @@ AlgorithmHistory::~AlgorithmHistory()
\param vers The algorithm version.
\param start The start time of the algorithm execution (optional).
\param duration The time (in seconds) that it took to run this algorithm (optional).
\param uexeccount an unsigned int for algorithm execution order
*/
AlgorithmHistory::AlgorithmHistory(const std::string& name, int vers, const dateAndTime& start, const double& duration,unsigned int uexeccount) :
m_name(name),m_version(vers),m_executionDate(start),
......
......@@ -98,7 +98,7 @@ namespace Mantid
};
/// to sort the algorithmhistory vector
bool UDlesserExecCount(NXClassInfo& elem1,NXClassInfo &elem2);
bool UDlesserExecCount(NXClassInfo elem1,NXClassInfo elem2);
} // namespace NeXus
} // namespace Mantid
......
......@@ -405,7 +405,7 @@ namespace Mantid
* @param elem1 first element in the vector
* @param elem2 second element in the vecor
*/
bool UDlesserExecCount(NXClassInfo& elem1,NXClassInfo &elem2)
bool UDlesserExecCount(NXClassInfo elem1,NXClassInfo elem2)
{
std::basic_string <char>::size_type index1, index2;
......@@ -448,7 +448,7 @@ namespace Mantid
//Group will contain a class for each algorithm, called MantidAlgorithm_i and then an
//environment class
//const std::vector<NXClassInfo> & classes = history.groups();
std::vector<NXClassInfo> classes = history.groups();
std::vector<NXClassInfo>& classes = history.groups();
//sort by execution order - to execute the script generated by algorithmhistory in proper order
sort(classes.begin(),classes.end(),UDlesserExecCount);
std::vector<NXClassInfo>::const_iterator iend = classes.end();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment