Skip to content
Snippets Groups Projects
Commit 304dda96 authored by scott snyder's avatar scott snyder
Browse files

RHadrons: Fix clang warnings.

clang warnings:
 - Do not use std::move in a return statement.
 - Unused private data members.
parent e377fa64
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
FullModelHadronicProcess::FullModelHadronicProcess(const G4String& processName) : FullModelHadronicProcess::FullModelHadronicProcess(const G4String& processName) :
G4VDiscreteProcess(processName,fUserDefined),m_theParticle(0),m_newParticle(0),m_toyModel(false),m_cache(0) G4VDiscreteProcess(processName,fUserDefined),m_theParticle(0),m_newParticle(0),m_cache(0)
{ {
// Instantiating helper class // Instantiating helper class
m_theHelper = G4ProcessHelper::Instance(); m_theHelper = G4ProcessHelper::Instance();
......
/* /*
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 FullModelHadronicProcess_h #ifndef FullModelHadronicProcess_h
...@@ -68,7 +68,6 @@ private: ...@@ -68,7 +68,6 @@ private:
const G4DynamicParticle* FindRhadron(G4ParticleChange*); const G4DynamicParticle* FindRhadron(G4ParticleChange*);
G4ProcessHelper* m_theHelper; G4ProcessHelper* m_theHelper;
G4bool m_toyModel;
G4double m_cache; G4double m_cache;
G4ThreeVector m_what; G4ThreeVector m_what;
......
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/ */
#include "SG_StepNtupleTool.h" #include "SG_StepNtupleTool.h"
...@@ -23,7 +23,7 @@ namespace G4UA ...@@ -23,7 +23,7 @@ namespace G4UA
actionList.runActions.push_back( action.get() ); actionList.runActions.push_back( action.get() );
actionList.eventActions.push_back( action.get() ); actionList.eventActions.push_back( action.get() );
actionList.steppingActions.push_back( action.get() ); actionList.steppingActions.push_back( action.get() );
return std::move(action); return action;
} }
} // namespace G4UA } // namespace G4UA
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