diff --git a/Code/Mantid/API/src/AlgorithmHistory.cpp b/Code/Mantid/API/src/AlgorithmHistory.cpp index 44e08cfeedf2cdd61f9bc1caee1aca9c60a15aca..e460a81b7baeb39e6a3f626b78e66d601a7cc31f 100644 --- a/Code/Mantid/API/src/AlgorithmHistory.cpp +++ b/Code/Mantid/API/src/AlgorithmHistory.cpp @@ -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), diff --git a/Code/Mantid/Nexus/inc/MantidNexus/LoadNexusProcessed.h b/Code/Mantid/Nexus/inc/MantidNexus/LoadNexusProcessed.h index 86adcf79919b590f02e6d6796962bee1e3e8632f..35d15851791c66fe131cc6110d42ac96ba5b6c53 100644 --- a/Code/Mantid/Nexus/inc/MantidNexus/LoadNexusProcessed.h +++ b/Code/Mantid/Nexus/inc/MantidNexus/LoadNexusProcessed.h @@ -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 diff --git a/Code/Mantid/Nexus/src/LoadNexusProcessed.cpp b/Code/Mantid/Nexus/src/LoadNexusProcessed.cpp index 72745ecec54fda40b282b57797e30bb6453c2904..96d6da851a29a374224d3dbb9e72692a48fdd966 100644 --- a/Code/Mantid/Nexus/src/LoadNexusProcessed.cpp +++ b/Code/Mantid/Nexus/src/LoadNexusProcessed.cpp @@ -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();