Skip to content

AthenaMtesEventLoopMgr : clang warning on usage of move

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);

Merge request reports