Skip to content

Commit

Permalink
Pass by reference in NexusClasses. Refs #7994
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Sep 30, 2013
1 parent 9043e6b commit c7b3f9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/Nexus/inc/MantidNexus/NexusClasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ namespace Mantid
Kernel::Property* createSingleValueProperty();
///Parse a time series
template<class TYPE>
Kernel::Property* parseTimeSeries(const std::string & logName, TYPE times, const std::string& time0 = "")
Kernel::Property* parseTimeSeries(const std::string & logName, const TYPE &times, const std::string& time0 = "")
{
std::string start_time = (!time0.empty()) ? time0 : times.attributes("start");
if (start_time.empty())
Expand Down Expand Up @@ -676,7 +676,7 @@ namespace Mantid
///@param times :: the array of time offsets
///@returns a property pointer
template<class NX_TYPE,class TIME_TYPE>
Kernel::Property* loadValues(const std::string& logName, NX_TYPE value, Kernel::DateAndTime start_t,TIME_TYPE times)
Kernel::Property* loadValues(const std::string& logName, NX_TYPE & value, Kernel::DateAndTime start_t, const TIME_TYPE & times)
{
value.openLocal();
Kernel::TimeSeriesProperty<double>* logv = new Kernel::TimeSeriesProperty<double>(logName);
Expand Down

0 comments on commit c7b3f9e

Please sign in to comment.