Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
afb531d3
Commit
afb531d3
authored
Sep 24, 2021
by
David Fairbrother
Browse files
Fix use init list instead of constructor to trigger cppcheck
Fixes a simple warning to correctly trigger cppcheck
parent
67a14a85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Framework/Kernel/src/DataItem.cpp
View file @
afb531d3
...
...
@@ -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
...
...
buildconfig/Jenkins/cppcheck.sh
View file @
afb531d3
...
...
@@ -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
=
106
9
ALLOWED_ERRORS_COUNT
=
106
7
if
[[
${
JOB_NAME
}
==
*
pull_requests
*
]]
;
then
# This relies on the fact pull requests use pull/$PR-NAME
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment