From ffbb195f928bde1fcf0b20f4b2dbe6bf179bdf5f Mon Sep 17 00:00:00 2001
From: William F Godoy <williamfgc@yahoo.com>
Date: Tue, 7 Apr 2020 15:43:39 -0400
Subject: [PATCH] Cppcheck issue

---
 Framework/DataHandling/src/LoadEventNexus.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Framework/DataHandling/src/LoadEventNexus.cpp b/Framework/DataHandling/src/LoadEventNexus.cpp
index 1434bc118a3..b55fb9ccc44 100644
--- a/Framework/DataHandling/src/LoadEventNexus.cpp
+++ b/Framework/DataHandling/src/LoadEventNexus.cpp
@@ -837,7 +837,6 @@ void LoadEventNexus::loadEvents(API::Progress *const prog,
   std::string classType = monitors ? "NXmonitor" : "NXevent_data";
   ::NeXus::Info info;
   bool oldNeXusFileNames(false);
-  bool hasTotalCounts(true);
   bool haveWeights = false;
   auto firstPulseT = DateAndTime::maximum();
 
@@ -868,8 +867,8 @@ void LoadEventNexus::loadEvents(API::Progress *const prog,
         }
         // get the number of events
         const std::string prefix = "/" + m_top_entry_name + "/" + entry_name;
-        std::size_t num = numEvents(*m_file, hasTotalCounts, oldNeXusFileNames,
-                                    prefix, *descriptor);
+        std::size_t num =
+            numEvents(*m_file, true, oldNeXusFileNames, prefix, *descriptor);
         bankNames.emplace_back(entry_name);
         bankNumEvents.emplace_back(num);
 
-- 
GitLab