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
800d6706
Commit
800d6706
authored
Jan 21, 2016
by
Michael Wedel
Browse files
Merge pull request #15051 from mantidproject/cppcheck_fixes
cppcheck 1.72 fixes.
parents
6331e6b5
5df9ff59
Changes
1
Hide whitespace changes
Inline
Side-by-side
MantidPlot/src/Mantid/InstrumentWidget/PeakOverlay.h
View file @
800d6706
...
...
@@ -48,7 +48,7 @@ private:
/// Helper class for scaling peak markers to intensities.
class
AbstractIntensityScale
{
public:
AbstractIntensityScale
(
explicit
AbstractIntensityScale
(
const
boost
::
shared_ptr
<
Mantid
::
API
::
IPeaksWorkspace
>
&
pws
)
{
setPeaksWorkspace
(
pws
);
}
...
...
@@ -70,7 +70,7 @@ protected:
/// Default intensity scale leaves all markers unchanged.
class
DefaultIntensityScale
:
public
AbstractIntensityScale
{
public:
DefaultIntensityScale
(
explicit
DefaultIntensityScale
(
const
boost
::
shared_ptr
<
Mantid
::
API
::
IPeaksWorkspace
>
&
pws
)
:
AbstractIntensityScale
(
pws
)
{}
...
...
@@ -89,7 +89,7 @@ protected:
/// strong, very strong).
class
QualitativeIntensityScale
:
public
AbstractIntensityScale
{
public:
QualitativeIntensityScale
(
explicit
QualitativeIntensityScale
(
const
boost
::
shared_ptr
<
Mantid
::
API
::
IPeaksWorkspace
>
&
pws
)
:
AbstractIntensityScale
(
pws
)
{}
...
...
@@ -99,6 +99,7 @@ protected:
const
PeakMarker2D
::
Style
&
baseStyle
)
const
override
;
private:
// cppcheck-suppress unusedPrivateFunction
int
getIntensityLevel
(
double
intensity
)
const
;
// Scaling to weak < 0.1 <= medium <= 0.6 <= strong <= 0.9 <= very strong
...
...
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