diff --git a/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Muon/MuonAnalysisDataLoader.h b/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Muon/MuonAnalysisDataLoader.h index eb797f100cc0..facb4860a384 100644 --- a/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Muon/MuonAnalysisDataLoader.h +++ b/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/Muon/MuonAnalysisDataLoader.h @@ -95,7 +95,7 @@ class MANTIDQT_CUSTOMINTERFACES_DLL MuonAnalysisDataLoader { /// Load dead times from file Mantid::API::Workspace_sptr loadDeadTimesFromFile(const std::string &filename) const; - //empty the cache + // empty the cache void clearCache(); protected: diff --git a/MantidQt/CustomInterfaces/src/Muon/MuonAnalysis.cpp b/MantidQt/CustomInterfaces/src/Muon/MuonAnalysis.cpp index ca6c8c75fb8d..5001f39717e9 100644 --- a/MantidQt/CustomInterfaces/src/Muon/MuonAnalysis.cpp +++ b/MantidQt/CustomInterfaces/src/Muon/MuonAnalysis.cpp @@ -2757,7 +2757,7 @@ void MuonAnalysis::deadTimeFileSelected() { * from the form */ void MuonAnalysis::setTimeZeroState(int checkBoxState) { - m_dataLoader.clearCache(); + m_dataLoader.clearCache(); if (checkBoxState == -1) checkBoxState = m_uiForm.timeZeroAuto->checkState(); diff --git a/MantidQt/CustomInterfaces/src/Muon/MuonAnalysisDataLoader.cpp b/MantidQt/CustomInterfaces/src/Muon/MuonAnalysisDataLoader.cpp index 474a96e01d9c..7ce7bebaa575 100644 --- a/MantidQt/CustomInterfaces/src/Muon/MuonAnalysisDataLoader.cpp +++ b/MantidQt/CustomInterfaces/src/Muon/MuonAnalysisDataLoader.cpp @@ -73,7 +73,7 @@ LoadResult MuonAnalysisDataLoader::loadFiles(const QStringList &files) const { throw std::invalid_argument("Supplied list of files is empty"); // Convert list of files into a mangled map key - const auto toString = [](QStringList qsl) { + const auto toString = [](QStringList qsl) { std::ostringstream oss; qsl.sort(); for (const QString qs : qsl) { @@ -86,10 +86,9 @@ LoadResult MuonAnalysisDataLoader::loadFiles(const QStringList &files) const { updateCache(); // Check cache to see if we've loaded this set of files before const std::string fileString = toString(files); - if (m_loadedDataCache.find(fileString) != m_loadedDataCache.end()) - { - g_log.information("Using cached workspace for file(s): " + fileString); - return m_loadedDataCache[fileString]; + if (m_loadedDataCache.find(fileString) != m_loadedDataCache.end()) { + g_log.information("Using cached workspace for file(s): " + fileString); + return m_loadedDataCache[fileString]; } LoadResult result; @@ -474,9 +473,9 @@ void MuonAnalysisDataLoader::updateCache() const { } void MuonAnalysisDataLoader::clearCache() { - if (!m_loadedDataCache.empty()) { - m_loadedDataCache.clear(); - } + if (!m_loadedDataCache.empty()) { + m_loadedDataCache.clear(); + } } } // namespace CustomInterfaces