From 2801036bb18cda089cf7c7b603167731ae4b79b5 Mon Sep 17 00:00:00 2001 From: Owen Arnold <owen.arnold@stfc.ac.uk> Date: Wed, 1 Apr 2020 22:18:05 +0100 Subject: [PATCH] clang-formatting fixes --- Framework/API/src/Sample.cpp | 1 - Framework/Kernel/src/PropertyManager.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Framework/API/src/Sample.cpp b/Framework/API/src/Sample.cpp index a9c2b47be06..fb301a0b13e 100644 --- a/Framework/API/src/Sample.cpp +++ b/Framework/API/src/Sample.cpp @@ -439,7 +439,6 @@ bool Sample::operator==(const Sample &other) const { return call_on(a) == call_on(b); else return true; - }; return *m_lattice == *other.m_lattice && this->m_name == other.m_name && this->m_height == other.m_height && this->m_width == other.m_width && diff --git a/Framework/Kernel/src/PropertyManager.cpp b/Framework/Kernel/src/PropertyManager.cpp index 72e08854f18..17a51367f32 100644 --- a/Framework/Kernel/src/PropertyManager.cpp +++ b/Framework/Kernel/src/PropertyManager.cpp @@ -586,7 +586,7 @@ std::string PropertyManager::asString(bool withDefaultValues) const { bool PropertyManager::operator==(const PropertyManager &other) const { if (other.m_properties.size() != m_properties.size()) return false; - for (const auto & [ key, value ] : m_properties) { + for (const auto &[key, value] : m_properties) { if (other.m_properties.count(key) != 1) return false; if (*other.m_properties.at(key) != *value) -- GitLab