diff --git a/Framework/Kernel/src/ConfigObserver.cpp b/Framework/Kernel/src/ConfigObserver.cpp index 9edcce92998f98ac40a44d3d6248e06ab249c11a..37f615dbb525ae787a28779421ec1e644bb2cca7 100644 --- a/Framework/Kernel/src/ConfigObserver.cpp +++ b/Framework/Kernel/src/ConfigObserver.cpp @@ -50,7 +50,7 @@ ConfigObserver::~ConfigObserver() noexcept { * * @param name The name of the property which changed. * @param newValue The new value of the property. - * @param prevValue The old value of the property. + * @param oldValue The old value of the property. */ void ConfigObserver::notifyValueChanged(const std::string &name, const std::string &newValue, diff --git a/Framework/Kernel/test/ConfigPropertyObserverTest.h b/Framework/Kernel/test/ConfigPropertyObserverTest.h index 94f6ba046ce5cbd5b11dba1ede0fd82e8dfa41ad..d84fa593910e4e72c5ccb54abf2134b0992cdff3 100644 --- a/Framework/Kernel/test/ConfigPropertyObserverTest.h +++ b/Framework/Kernel/test/ConfigPropertyObserverTest.h @@ -50,33 +50,33 @@ public: } void testRecievesCallbackForSearchDirectoryChange() { - auto call_count = 0; + auto callCount = 0; auto constexpr NUMBER_OF_PROPERTIES_CHANGED = 1; auto observer = makeMockObserver("datasearch.directories", - [&call_count](const std::string &newValue, - const std::string &prevValue) -> void { + [&callCount](const std::string &newValue, + const std::string &prevValue) -> void { UNUSED_ARG(newValue); UNUSED_ARG(prevValue); - call_count++; + callCount++; }); ConfigService::Instance().setString("datasearch.directories", "/dev/null"); - TS_ASSERT_EQUALS(NUMBER_OF_PROPERTIES_CHANGED, call_count); + TS_ASSERT_EQUALS(NUMBER_OF_PROPERTIES_CHANGED, callCount); } void testRecievesCallbackForOutputDirectoryChangeOnly() { - auto call_count = 0; + auto callCount = 0; auto constexpr NUMBER_OF_PROPERTIES_CHANGED = 1; auto observer = makeMockObserver("datasearch.directories", - [&call_count](const std::string &newValue, - const std::string &prevValue) -> void { + [&callCount](const std::string &newValue, + const std::string &prevValue) -> void { UNUSED_ARG(newValue); UNUSED_ARG(prevValue); - call_count++; + callCount++; }); ConfigService::Instance().setString("datasearch.directories", "/dev/null"); - TS_ASSERT_EQUALS(NUMBER_OF_PROPERTIES_CHANGED, call_count); + TS_ASSERT_EQUALS(NUMBER_OF_PROPERTIES_CHANGED, callCount); } void testMultipleObserversForDifferentProperties() {