AthenaMtesEventLoopMgr : clang warning on usage of move
requested to merge ATLAS-EGamma/athena:AthenaMtesEventLoopMgr_clang_move_prevent_copy_ellision into master
Fixing following warnings :
build/atnight/localbuilds/nightlies/master/athena/Control/AthenaServices/src/AthenaMtesEventLoopMgr.cxx:1439:50: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
if(range.compare(strStopProcessing)==0) return std::move(result);
^
/build/atnight/localbuilds/nightlies/master/athena/Control/AthenaServices/src/AthenaMtesEventLoopMgr.cxx:1439:50: note: remove std::move call here
if(range.compare(strStopProcessing)==0) return std::move(result);
^~~~~~~~~~ ~
/build/atnight/localbuilds/nightlies/master/athena/Control/AthenaServices/src/AthenaMtesEventLoopMgr.cxx:1481:12: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
return std::move(result);
^
/build/atnight/localbuilds/nightlies/master/athena/Control/AthenaServices/src/AthenaMtesEventLoopMgr.cxx:1481:12: note: remove std::move call here
return std::move(result);
^~~~~~~~~~ ~
/build/atnight/localbuilds/nightlies/master/athena/Control/AthenaServices/src/AthenaMtesEventLoopMgr.cxx:1505:10: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
return std::move(result);
^
/build/atnight/localbuilds/nightlies/master/athena/Control/AthenaServices/src/AthenaMtesEventLoopMgr.cxx:1505:10: note: remove std::move call here
return std::move(result);