From cc2a7413a75f29b5dd4c8721942d177df2d58404 Mon Sep 17 00:00:00 2001 From: Wenduo Zhou <zhouw@ornl.gov> Date: Mon, 10 Feb 2014 21:45:20 -0500 Subject: [PATCH] Fixed duplicate if error reported by cppcheck. Refs #8881. --- .../Framework/Algorithms/src/SaveGSASInstrumentFile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/Mantid/Framework/Algorithms/src/SaveGSASInstrumentFile.cpp b/Code/Mantid/Framework/Algorithms/src/SaveGSASInstrumentFile.cpp index c82a7922216..8d5a26319e2 100644 --- a/Code/Mantid/Framework/Algorithms/src/SaveGSASInstrumentFile.cpp +++ b/Code/Mantid/Framework/Algorithms/src/SaveGSASInstrumentFile.cpp @@ -140,11 +140,11 @@ ChopperConfiguration::ChopperConfiguration(const int freq, const std::string& ba size_t numbanks = m_bankIDs.size(); // Check size - if (m_vecCWL.size() != numbanks || m_vecCWL.size() != numbanks || m_vecCWL.size() != numbanks) + if (m_vecCWL.size() != numbanks || m_mindsps.size() != numbanks || m_maxdsps.size() != numbanks + || m_maxtofs.size() != numbanks) { - stringstream errss; - errss << "Default chopper constants have different number of elements. "; - throw runtime_error(errss.str()); + std::string errmsg("Default chopper constants have different number of elements. "); + throw runtime_error(errmsg); } // Set up index map -- GitLab