Skip to content

Commit

Permalink
Cppcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Nov 4, 2024
1 parent 2a0ff8c commit d51ff83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions cmake/cppcheck-suppression-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ duplInheritedMember:*/src/vsg/core/Data.cpp
duplInheritedMember:*/src/vsg/nodes/Node.cpp

// suppress unhelpful warning of shadowFunction
shadowFunction:*/include/vsg/maths/transform.h
shadowFunction:*/src/io/Path.cpp
shadowFunction:*/src/vsg/animation/CameraAnimation.cpp
shadowFunction:*/src/vsg/animation/TransformSampler.cpp
Expand Down
12 changes: 6 additions & 6 deletions src/vsg/text/CpuLayoutTechnique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ using namespace vsg;
class VSG_DECLSPEC CpuLayoutTechniqueArrayState : public Inherit<ArrayState, CpuLayoutTechniqueArrayState>
{
public:
CpuLayoutTechniqueArrayState(const CpuLayoutTechnique* in_technique) :
technique(in_technique)
{
}

CpuLayoutTechniqueArrayState(const CpuLayoutTechniqueArrayState& rhs) :
Inherit(rhs),
technique(rhs.technique)
{
}

CpuLayoutTechniqueArrayState(const ArrayState& rhs) :
explict CpuLayoutTechniqueArrayState(const CpuLayoutTechnique* in_technique) :
technique(in_technique)
{
}

explict CpuLayoutTechniqueArrayState(const ArrayState& rhs) :
Inherit(rhs)
{
}
Expand Down

0 comments on commit d51ff83

Please sign in to comment.