Skip to content
Snippets Groups Projects
Commit 6c13bf74 authored by Christos Anastopoulos's avatar Christos Anastopoulos Committed by Frank Winklmeier
Browse files

TrkValidationUtils cppcheck unitMemberVar

TrkValidationUtils cppcheck unitMemberVar
parent 1938c339
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,6 @@ namespace Trk {
*/
struct MatrixNtupleBranch {
MatrixNtupleBranch() : m_nrows(-1),m_ncols(-1) {}
/** initialize class for writing */
bool initForWrite(TTree& tree, const std::string& varname, int ncol, int nrow, const std::string& prefix = "" );
......@@ -48,9 +47,9 @@ namespace Trk {
/** data */
static const int COLMAX = 10;
static const int ROWMAX = 10;
int m_nrows;
int m_ncols;
float m_matrix[COLMAX][ROWMAX];
int m_nrows{-1};
int m_ncols{-1};
float m_matrix[COLMAX][ROWMAX]{};
};
}
......
......@@ -32,7 +32,6 @@ namespace Trk {
}
*/
struct VectorNtupleBranch {
VectorNtupleBranch() : m_nrows(-1) {}
/** initialize class for writing */
bool initForWrite(TTree& tree, const std::string& varname, int nrow, const std::string& prefix = "" );
......@@ -57,8 +56,8 @@ namespace Trk {
/** maximum size of the vector */
static const int ROWMAX = 10;
int m_nrows;
float m_vector[ROWMAX];
int m_nrows {-1};
float m_vector[ROWMAX]{};
};
}
......
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