From 0572ff0c07d40189b3990a0d130cbae5fb9e184e Mon Sep 17 00:00:00 2001 From: scott snyder Date: Wed, 3 Apr 2019 17:45:30 +0200 Subject: [PATCH] MuonRPC_CnvTools: Fix clang warnings. clang warnings: don't use std::move on non-lvalue. --- .../MuonCnv/MuonRPC_CnvTools/src/RpcROD_Decoder.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MuonSpectrometer/MuonCnv/MuonRPC_CnvTools/src/RpcROD_Decoder.h b/MuonSpectrometer/MuonCnv/MuonRPC_CnvTools/src/RpcROD_Decoder.h index 93842df2fa9..8c280074963 100755 --- a/MuonSpectrometer/MuonCnv/MuonRPC_CnvTools/src/RpcROD_Decoder.h +++ b/MuonSpectrometer/MuonCnv/MuonRPC_CnvTools/src/RpcROD_Decoder.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ #ifndef MUONBYTESTREAM_RPCROD_DECODER_H @@ -562,7 +562,7 @@ namespace Muon } else{ // Take the pointer and pass ownership to unique_ptr and pass to the IDC_WriteHandle - StatusCode status_lock = lock.addOrDelete( std::move( std::unique_ptr(it.second) ) ); + StatusCode status_lock = lock.addOrDelete( std::unique_ptr(it.second) ); if(status_lock != StatusCode::SUCCESS) { @@ -609,7 +609,7 @@ namespace Muon // Here need to implement writing for all the other fill methods // Take the pointer and pass ownership to unique_ptr and pass to the IDC_WriteHandle - StatusCode status_lock = lock.addOrDelete( std::move( std::unique_ptr( coll ) ) ); + StatusCode status_lock = lock.addOrDelete( std::unique_ptr( coll ) ); // add collection into IDC if(status_lock != StatusCode::SUCCESS) -- GitLab