Skip to content
Snippets Groups Projects
Commit aa58bf99 authored by Owen Arnold's avatar Owen Arnold
Browse files

refs #5494. Fix GCC issue.

parent e980698f
No related branches found
No related tags found
No related merge requests found
...@@ -107,13 +107,14 @@ namespace MDEvents ...@@ -107,13 +107,14 @@ namespace MDEvents
//Copy from property //Copy from property
std::copy(signalValues.begin(), signalValues.end(), signals); std::copy(signalValues.begin(), signalValues.end(), signals);
std::vector<double> empty;
//Clean up. //Clean up.
signalValues.swap(std::vector<double>()); signalValues.swap(empty);
//Copy from property //Copy from property
std::for_each(errorValues.begin(), errorValues.end(), Square()); std::for_each(errorValues.begin(), errorValues.end(), Square());
std::copy(errorValues.begin(), errorValues.end(), errors); std::copy(errorValues.begin(), errorValues.end(), errors);
//Clean up //Clean up
errorValues.swap(std::vector<double>()); errorValues.swap(empty);
setProperty("OutputWorkspace", ws); setProperty("OutputWorkspace", ws);
......
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