Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
f765f3b4
Commit
f765f3b4
authored
Jul 16, 2015
by
Christian Schulte zu Berge
Browse files
Taking care of CppCheck issues
#2
parent
c2b87c2b
Changes
107
Hide whitespace changes
Inline
Side-by-side
application/gui/adjusterwidgets/abstractadjusterwidget.h
View file @
f765f3b4
...
...
@@ -63,7 +63,7 @@ namespace campvis {
* Creates a new AbstractAdjusterWidget.
* \param parent parent Qt widget
*/
AbstractAdjusterWidget
(
QWidget
*
parent
=
0
);
explicit
AbstractAdjusterWidget
(
QWidget
*
parent
=
0
);
/**
* Return the adjuster's current value.
...
...
application/gui/adjusterwidgets/doubleadjusterwidget.h
View file @
f765f3b4
...
...
@@ -43,7 +43,7 @@ namespace campvis {
* Creates a new DoubleAdjusterWidget.
* \param parent parent Qt widget
*/
DoubleAdjusterWidget
(
QWidget
*
parent
=
0
);
explicit
DoubleAdjusterWidget
(
QWidget
*
parent
=
0
);
/**
* Returns how many decimals the adjuster will use for displaying and doubleerpreting doubles.
...
...
application/gui/adjusterwidgets/intadjusterwidget.h
View file @
f765f3b4
...
...
@@ -42,7 +42,7 @@ namespace campvis {
* Creates a new IntAdjusterWidget.
* \param parent Parent Qt widget
*/
IntAdjusterWidget
(
QWidget
*
parent
=
0
);
explicit
IntAdjusterWidget
(
QWidget
*
parent
=
0
);
/**
* Change the adjuster's current value.
...
...
application/gui/properties/abstractpropertywidget.cpp
View file @
f765f3b4
...
...
@@ -59,7 +59,6 @@ namespace campvis {
}
_property
->
s_changed
.
connect
(
this
,
&
AbstractPropertyWidget
::
onPropertyChanged
);
// cppcheck-suppress pureVirtualCall
connect
(
this
,
SIGNAL
(
s_propertyChanged
(
const
AbstractProperty
*
)),
this
,
SLOT
(
updateWidgetFromProperty
()));
}
...
...
application/gui/properties/abstractpropertywidget.h
View file @
f765f3b4
...
...
@@ -82,7 +82,7 @@ namespace campvis {
/**
* Gets called when the property has changed, so that widget can update its state.
*/
virtual
void
updateWidgetFromProperty
()
=
0
;
virtual
void
updateWidgetFromProperty
()
{}
;
signals:
/**
...
...
application/gui/properties/propertycollectionwidget.h
View file @
f765f3b4
...
...
@@ -48,7 +48,7 @@ namespace campvis {
* Creates a new PropertyCollectionWidget.
* \param parent Parent widget, may be 0.
*/
PropertyCollectionWidget
(
QWidget
*
parent
=
0
);
explicit
PropertyCollectionWidget
(
QWidget
*
parent
=
0
);
/**
* Destructor.
...
...
application/gui/properties/tfgeometrymanipulator.h
View file @
f765f3b4
...
...
@@ -46,7 +46,7 @@ namespace campvis {
* Creates a new AbstractTFGeometryManipulator for the given Geometry1DTransferFunction.
* \param viewportSize Viewport size (extent of the OpenGL rendering canvas)
*/
AbstractTFGeometryManipulator
(
const
cgt
::
ivec2
&
viewportSize
);
explicit
AbstractTFGeometryManipulator
(
const
cgt
::
ivec2
&
viewportSize
);
/**
* Pure virtual Destructor
...
...
core/classification/tfgeometry2d.cpp
View file @
f765f3b4
...
...
@@ -98,7 +98,7 @@ namespace campvis {
namespace
{
struct
KeyPointSorter
{
KeyPointSorter
(
const
cgt
::
vec2
&
center
)
explicit
KeyPointSorter
(
const
cgt
::
vec2
&
center
)
:
_center
(
center
)
{};
...
...
core/datastructures/abstractimagerepresentation.h
View file @
f765f3b4
...
...
@@ -46,7 +46,7 @@ namespace campvis {
* Creates a new abstract representation for the image \a parent.
* \param parent Image this representation represents, must not be 0.
*/
AbstractImageRepresentation
(
ImageData
*
parent
);
explicit
AbstractImageRepresentation
(
ImageData
*
parent
);
/**
* Virtual Destructor.
...
...
core/datastructures/datacontainer.h
View file @
f765f3b4
...
...
@@ -56,7 +56,7 @@ namespace campvis {
* Creates a new empty DataContainer
* \param name The name of the new DataContainer
*/
DataContainer
(
const
std
::
string
&
name
);
explicit
DataContainer
(
const
std
::
string
&
name
);
/**
* Destructor of the DataContainer. Will disconnect all DataHandles from this container.
...
...
core/pipeline/abstractpipeline.h
View file @
f765f3b4
...
...
@@ -67,7 +67,7 @@ namespace campvis {
* \param dc Pointer to the DataContainer containing local working set of data for this
* pipeline, must not be 0, must be valid the whole lifetime of this pipeline.
*/
AbstractPipeline
(
DataContainer
*
dc
);
explicit
AbstractPipeline
(
DataContainer
*
dc
);
/**
* Virtual Destructor
...
...
core/pipeline/abstractprocessor.h
View file @
f765f3b4
...
...
@@ -67,7 +67,7 @@ namespace campvis {
* Constructs a new Scoped lock, locking \a p and unlocking \a p on destruction.
* \param p Processor to lock
*/
ScopedLock
(
AbstractProcessor
*
p
)
explicit
ScopedLock
(
AbstractProcessor
*
p
)
:
_p
(
p
)
{
_p
->
lockProcessor
();
...
...
core/pipeline/abstractworkflow.h
View file @
f765f3b4
...
...
@@ -86,7 +86,7 @@ namespace campvis {
/**
* Default constructor
*/
AbstractWorkflow
(
const
std
::
string
&
title
);
explicit
AbstractWorkflow
(
const
std
::
string
&
title
);
/**
* Default virtual destructor.
...
...
core/pipeline/autoevaluationpipeline.h
View file @
f765f3b4
...
...
@@ -47,7 +47,7 @@ namespace campvis {
/**
* Creates a AutoEvaluationPipeline.
*/
AutoEvaluationPipeline
(
DataContainer
*
dc
);
explicit
AutoEvaluationPipeline
(
DataContainer
*
dc
);
/**
* Virtual Destructor
...
...
core/tools/glreduction.h
View file @
f765f3b4
...
...
@@ -63,7 +63,7 @@ namespace campvis {
* Constructor
* \param reductionOperator Operation to be performed by reduction
*/
GlReduction
(
ReductionOperator
reductionOperator
);
explicit
GlReduction
(
ReductionOperator
reductionOperator
);
/**
* Destructor
...
...
core/tools/textfileparser.h
View file @
f765f3b4
...
...
@@ -52,7 +52,7 @@ namespace campvis {
public:
struct
CAMPVIS_CORE_API
TokenGroup
{
public:
TokenGroup
(
bool
caseSensitiveKeys
)
explicit
TokenGroup
(
bool
caseSensitiveKeys
)
:
_caseSensitiveKeys
(
caseSensitiveKeys
)
{};
...
...
ext/cgt/glcontextmanager.h
View file @
f765f3b4
...
...
@@ -126,7 +126,7 @@ namespace cgt {
*/
class
CGT_API
GLContextScopedLock
{
public:
GLContextScopedLock
(
GLCanvas
*
context
)
explicit
GLContextScopedLock
(
GLCanvas
*
context
)
:
_context
(
context
)
{
if
(
_context
)
{
...
...
ext/cgt/gpucapabilities.h
View file @
f765f3b4
...
...
@@ -68,7 +68,7 @@ public:
*/
class
CGT_API
GlVersion
{
public:
GlVersion
(
int
major
=
0
,
int
minor
=
0
,
int
release
=
0
);
explicit
GlVersion
(
int
major
=
0
,
int
minor
=
0
,
int
release
=
0
);
/**
* Parse OpenGL version string as specified:
...
...
@@ -174,7 +174,7 @@ public:
* on the graphics card before initGL() is called. Otherwise GpuCapabilities tries to
* detect GL values while initGL() isn't called yet and produces a crash.
*/
GpuCapabilities
(
bool
detectCaps
=
true
);
explicit
GpuCapabilities
(
bool
detectCaps
=
true
);
virtual
~
GpuCapabilities
()
{}
...
...
ext/cgt/gpucapabilitieswindows.cpp
View file @
f765f3b4
...
...
@@ -900,8 +900,6 @@ bool GpuCapabilitiesWindows::createVersionStringFromDigits(FileVersion &fileVers
return
true
;
}
std
::
string
GpuCapabilitiesWindows
::
loggerCat_
=
"cgt.GpuCapabilitiesWindows"
;
}
// namespace cgt
#endif //WIN32
ext/cgt/gpucapabilitieswindows.h
View file @
f765f3b4
...
...
@@ -133,8 +133,6 @@ public:
protected:
static
std
::
string
loggerCat_
;
#ifdef CGT_WITH_WMI
/**
...
...
Prev
1
2
3
4
5
6
Next
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