Skip to content
Snippets Groups Projects
Commit 2540865d authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

ForwardTracker: Fix clang warnings.

clang warnings:
  - unused variable.
  - class with virtual functions but no virtual dtor.
  
parent c3146916
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,8 @@ namespace ForwardTracker { ...@@ -14,7 +14,8 @@ namespace ForwardTracker {
class IBender { class IBender {
public: public:
virtual ~IBender() {}
virtual void bend(IParticle&) const = 0; virtual void bend(IParticle&) const = 0;
typedef boost::shared_ptr<IBender> ConstPtr_t; typedef boost::shared_ptr<IBender> ConstPtr_t;
......
...@@ -45,7 +45,7 @@ namespace ForwardTracker { ...@@ -45,7 +45,7 @@ namespace ForwardTracker {
public: public:
ParticleTracker(IParticle& particle): m_particle(particle), m_element(0) {} ParticleTracker(IParticle& particle): m_particle(particle) {}
bool operator()(const IBeamElement::ConstPtr_t& be) { bool operator()(const IBeamElement::ConstPtr_t& be) {
...@@ -59,7 +59,6 @@ namespace ForwardTracker { ...@@ -59,7 +59,6 @@ namespace ForwardTracker {
private: private:
IParticle& m_particle; IParticle& m_particle;
int m_element;
}; };
void Beamline::track(IParticle& particle) const { // Pass the particle to beam elements until out of aperture or endPlane void Beamline::track(IParticle& particle) const { // Pass the particle to beam elements until out of aperture or endPlane
......
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