Skip to content
Snippets Groups Projects
Commit 2e5432d8 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

ISF_FatrasTools: Fix gcc11 warnings.

Misleading indentation.
parent e1fbfb6d
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
...@@ -78,12 +78,14 @@ namespace iFatras ...@@ -78,12 +78,14 @@ namespace iFatras
private: private:
/** templated Tool retrieval - gives unique handling & look and feel */ /** templated Tool retrieval - gives unique handling & look and feel */
template <class T> StatusCode retrieveTool(ToolHandle<T>& thandle){ template <class T> StatusCode retrieveTool(ToolHandle<T>& thandle){
if (!thandle.empty() && thandle.retrieve().isFailure()){ if (!thandle.empty() && thandle.retrieve().isFailure()){
ATH_MSG_FATAL( "[ fatras setup ] Cannot retrieve " << thandle << ". Abort."); ATH_MSG_FATAL( "[ fatras setup ] Cannot retrieve " << thandle << ". Abort.");
return StatusCode::FAILURE; return StatusCode::FAILURE;
} else }
ATH_MSG_DEBUG("[ fatras setup ] Successfully retrieved " << thandle); else {
return StatusCode::SUCCESS; ATH_MSG_DEBUG("[ fatras setup ] Successfully retrieved " << thandle);
}
return StatusCode::SUCCESS;
} }
void saveInfo(const ISF::ISFParticle& isp) const; void saveInfo(const ISF::ISFParticle& isp) const;
......
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
...@@ -70,12 +70,14 @@ namespace iFatras ...@@ -70,12 +70,14 @@ namespace iFatras
private: private:
/** templated Tool retrieval - gives unique handling & look and feel */ /** templated Tool retrieval - gives unique handling & look and feel */
template <class T> StatusCode retrieveTool(ToolHandle<T>& thandle){ template <class T> StatusCode retrieveTool(ToolHandle<T>& thandle){
if (!thandle.empty() && thandle.retrieve().isFailure()){ if (!thandle.empty() && thandle.retrieve().isFailure()){
ATH_MSG_FATAL( "[ fatras setup ] Cannot retrieve " << thandle << ". Abort."); ATH_MSG_FATAL( "[ fatras setup ] Cannot retrieve " << thandle << ". Abort.");
return StatusCode::FAILURE; return StatusCode::FAILURE;
} else }
ATH_MSG_DEBUG("[ fatras setup ] Successfully retrieved " << thandle); else {
return StatusCode::SUCCESS; ATH_MSG_DEBUG("[ fatras setup ] Successfully retrieved " << thandle);
}
return StatusCode::SUCCESS;
} }
/*--------------------------------------------------------------------- /*---------------------------------------------------------------------
......
/* /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/ */
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
...@@ -75,12 +75,14 @@ namespace iFatras ...@@ -75,12 +75,14 @@ namespace iFatras
private: private:
/** templated Tool retrieval - gives unique handling & look and feel */ /** templated Tool retrieval - gives unique handling & look and feel */
template <class T> StatusCode retrieveTool(ToolHandle<T>& thandle){ template <class T> StatusCode retrieveTool(ToolHandle<T>& thandle){
if (!thandle.empty() && thandle.retrieve().isFailure()){ if (!thandle.empty() && thandle.retrieve().isFailure()){
ATH_MSG_FATAL( "[ fatras setup ] Cannot retrieve " << thandle << ". Abort."); ATH_MSG_FATAL( "[ fatras setup ] Cannot retrieve " << thandle << ". Abort.");
return StatusCode::FAILURE; return StatusCode::FAILURE;
} else }
ATH_MSG_DEBUG("[ fatras setup ] Successfully retrieved " << thandle); else {
return StatusCode::SUCCESS; ATH_MSG_DEBUG("[ fatras setup ] Successfully retrieved " << thandle);
}
return StatusCode::SUCCESS;
} }
/*--------------------------------------------------------------------- /*---------------------------------------------------------------------
......
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