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

TrkVertexBilloirTools: Fix cppcheck warnings.

Useless pointer comparisons.
parent 658ff8b0
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/ */
/*************************************************************************** /***************************************************************************
...@@ -377,7 +377,6 @@ namespace Trk ...@@ -377,7 +377,6 @@ namespace Trk
xAOD::Vertex* fittedVertex = fit( measuredPerigees, constraint ); xAOD::Vertex* fittedVertex = fit( measuredPerigees, constraint );
//assigning the input tracks to the fitted vertex through VxTrackAtVertices //assigning the input tracks to the fitted vertex through VxTrackAtVertices
if(fittedVertex !=nullptr)
{ {
if( fittedVertex->vxTrackAtVertexAvailable() ) // TODO: I don't think vxTrackAtVertexAvailable() does the same thing as a null pointer check! if( fittedVertex->vxTrackAtVertexAvailable() ) // TODO: I don't think vxTrackAtVertexAvailable() does the same thing as a null pointer check!
{ {
......
...@@ -529,7 +529,6 @@ namespace Trk ...@@ -529,7 +529,6 @@ namespace Trk
xAOD::Vertex* fittedVertex = fit( measuredPerigees, constraint ); xAOD::Vertex* fittedVertex = fit( measuredPerigees, constraint );
//assigning the input tracks to the fitted vertex through VxTrackAtVertices //assigning the input tracks to the fitted vertex through VxTrackAtVertices
if(fittedVertex !=nullptr)
{ {
if( fittedVertex->vxTrackAtVertexAvailable() ) // TODO: I don't think vxTrackAtVertexAvailable() does the same thing as a null pointer check! if( fittedVertex->vxTrackAtVertexAvailable() ) // TODO: I don't think vxTrackAtVertexAvailable() does the same thing as a null pointer check!
{ {
......
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