From d1636839db02ddf8a268eebb3baf1765b2da7211 Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Sat, 19 Feb 2022 14:13:10 -0500 Subject: [PATCH] Fixed small bug in the CompassRun class where uninitialized m_startIndex would max --- Navigator/src/Navigator/Physics/Caen/CompassRun.cpp | 12 ++++++------ Navigator/src/Navigator/Physics/Caen/CompassRun.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Navigator/src/Navigator/Physics/Caen/CompassRun.cpp b/Navigator/src/Navigator/Physics/Caen/CompassRun.cpp index 61b10fc..264663a 100644 --- a/Navigator/src/Navigator/Physics/Caen/CompassRun.cpp +++ b/Navigator/src/Navigator/Physics/Caen/CompassRun.cpp @@ -14,12 +14,12 @@ namespace Navigator { CompassRun::CompassRun() : - DataSource(), m_directory("") + DataSource(), m_directory(""), m_startIndex(0) { } CompassRun::CompassRun(const std::string& dir) : - DataSource(), m_directory(dir) + DataSource(), m_directory(dir), m_startIndex(0) { CollectFiles(); } @@ -87,18 +87,18 @@ namespace Navigator { { std::pair earliestHit = std::make_pair(CompassHit(), nullptr); - for(unsigned int i=startIndex; i m_datafiles; - unsigned int startIndex; //this is the file we start looking at; increases as we finish files. + unsigned int m_startIndex; //this is the file we start looking at; increases as we finish files. ShiftMap m_smap;