File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Framework/Reflectometry/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ void FindReflectometryLines2::exec() {
134
134
setProperty (Prop::LINE_CENTRE, peakWSIndex);
135
135
if (!isDefault (Prop::OUTPUT_WS)) {
136
136
auto outputWS = makeOutput (peakWSIndex);
137
- setProperty (Prop::OUTPUT_WS, outputWS);
137
+ setProperty (Prop::OUTPUT_WS, std::move ( outputWS) );
138
138
}
139
139
}
140
140
@@ -189,7 +189,7 @@ double FindReflectometryLines2::findPeak(const API::MatrixWorkspace_sptr &ws) {
189
189
func = API::FunctionFactory::Instance ().createFunction (" LinearBackground" );
190
190
func->setParameter (" A0" , medianY);
191
191
func->setParameter (" A1" , 0 .);
192
- sum->addFunction (func);
192
+ sum->addFunction (std::move ( func) );
193
193
// call Fit child algorithm
194
194
auto fit = createChildAlgorithm (" Fit" );
195
195
fit->initialize ();
You can’t perform that action at this time.
0 commit comments