Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
cfcc6b50
Commit
cfcc6b50
authored
Feb 07, 2017
by
Jan Möbius
Browse files
More cppcheck warnings
parent
a2217110
Changes
4
Hide whitespace changes
Inline
Side-by-side
libs_required/ACG/GL/DrawMesh.hh
View file @
cfcc6b50
...
...
@@ -185,7 +185,7 @@ private:
public:
DrawMeshT
(
Mesh
&
_mesh
);
explicit
DrawMeshT
(
Mesh
&
_mesh
);
virtual
~
DrawMeshT
();
void
disableColors
()
{
colorMode_
=
0
;}
...
...
libs_required/ACG/GL/ShaderGenerator.cc
View file @
cfcc6b50
...
...
@@ -2329,7 +2329,6 @@ void ShaderProgGenerator::scanShaderTemplate(QStringList& _templateSrc, QString
// scan and adjust glsl version
QByteArray
lineBytes
=
trimmedLine
.
toUtf8
();
int
templateVersion
=
0
;
if
(
trimmedLine
.
startsWith
(
"#version "
))
{
QStringList
tokens
=
trimmedLine
.
split
(
' '
);
...
...
@@ -2338,7 +2337,7 @@ void ShaderProgGenerator::scanShaderTemplate(QStringList& _templateSrc, QString
{
// templateVersion
bool
convOk
=
false
;
templateVersion
=
tokens
.
at
(
1
).
toInt
(
&
convOk
);
int
templateVersion
=
tokens
.
at
(
1
).
toInt
(
&
convOk
);
if
(
convOk
)
{
...
...
libs_required/ACG/Geometry/bsp/TriangleBSPCoreT.hh
View file @
cfcc6b50
...
...
@@ -93,7 +93,7 @@ public: //---------------------------------------------------------------------
/** Constructor: need traits that define the types and
give us the points by traits_.point(PointHandle) */
TriangleBSPCoreT
(
const
BSPTraits
&
_traits
)
:
traits_
(
_traits
),
root_
(
0
),
nodes
(
0
),
n_triangles
(
0
)
{}
explicit
TriangleBSPCoreT
(
const
BSPTraits
&
_traits
)
:
traits_
(
_traits
),
root_
(
0
),
nodes
(
0
),
n_triangles
(
0
)
{}
/// Destructor
~
TriangleBSPCoreT
()
{
...
...
libs_required/ACG/Geometry/bsp/TriangleBSPT.hh
View file @
cfcc6b50
...
...
@@ -93,7 +93,7 @@ public:
typedef
typename
Handles
::
iterator
HandleIter
;
typedef
TreeNode
<
SpecificTraits
>
Node
;
OVMOMCommonTriangleBSPTraits
(
const
Mesh
&
_mesh
)
:
SpecificTraits
(
_mesh
)
{}
explicit
OVMOMCommonTriangleBSPTraits
(
const
Mesh
&
_mesh
)
:
SpecificTraits
(
_mesh
)
{}
Scalar
sqrdist
(
const
Handle
_h
,
const
Point
&
_p
)
const
{
...
...
@@ -195,7 +195,7 @@ public:
typedef
typename
Mesh
::
Point
Point
;
typedef
typename
Mesh
::
FaceHandle
Handle
;
typedef
typename
Mesh
::
VertexHandle
VertexHandle
;
OMSpecificTriangleBSPTraits
(
const
Mesh
&
_mesh
)
:
mesh_
(
_mesh
)
{}
explicit
OMSpecificTriangleBSPTraits
(
const
Mesh
&
_mesh
)
:
mesh_
(
_mesh
)
{}
/// Returns the points belonging to the face handle _h
inline
void
points
(
const
Handle
&
_h
,
Point
&
_p0
,
Point
&
_p1
,
Point
&
_p2
)
const
...
...
@@ -248,7 +248,7 @@ public:
typedef
typename
Mesh
::
PointT
Point
;
typedef
OpenVolumeMesh
::
FaceHandle
Handle
;
typedef
OpenVolumeMesh
::
VertexHandle
VertexHandle
;
OVMSpecificTriangleBSPTraits
(
const
Mesh
&
_mesh
)
:
mesh_
(
_mesh
)
{}
explicit
OVMSpecificTriangleBSPTraits
(
const
Mesh
&
_mesh
)
:
mesh_
(
_mesh
)
{}
/// Returns the points belonging to the face handle _h
inline
void
points
(
const
Handle
&
_h
,
Point
&
_p0
,
Point
&
_p1
,
Point
&
_p2
)
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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