Commit afb531d3 authored by David Fairbrother's avatar David Fairbrother
Browse files

Fix use init list instead of constructor to trigger cppcheck

Fixes a simple warning to correctly trigger cppcheck
parent 67a14a85
......@@ -14,14 +14,12 @@ namespace Mantid::Kernel {
/** Default constructor
*/
DataItem::DataItem() { m_lock = std::make_unique<Poco::RWLock>(); }
DataItem::DataItem() : m_lock(std::make_unique<Poco::RWLock>()) {}
/** Copy constructor
* Always makes a unique lock
*/
DataItem::DataItem(const DataItem & /*other*/) {
// Always make a unique lock!
m_lock = std::make_unique<Poco::RWLock>();
}
DataItem::DataItem(const DataItem & /*other*/) : m_lock(std::make_unique<Poco::RWLock>()) {}
/**
* Destructor. Required in cpp do avoid linker errors when other projects try to
......
......@@ -4,7 +4,7 @@ SCRIPT_DIR=$(dirname "$0")
# If errors slip through to master this can be used to set a non-zero
# allowed count while those errors are dealt with. This avoids breaking all
# builds for all developers
ALLOWED_ERRORS_COUNT=1069
ALLOWED_ERRORS_COUNT=1067
if [[ ${JOB_NAME} == *pull_requests* ]]; then
# This relies on the fact pull requests use pull/$PR-NAME
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment