Skip to content

Commit 5ef2fe2

Browse files
committed
cppcheck fixes
1 parent 9d91ad4 commit 5ef2fe2

30 files changed

Lines changed: 32 additions & 32 deletions

include/vsg/state/ArrayState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace vsg
9292
virtual ref_ptr<const vec3Array> vertexArray(uint32_t instanceIndex);
9393

9494
protected:
95-
virtual ~ArrayState() {}
95+
~ArrayState() override {}
9696
};
9797
VSG_type_name(vsg::ArrayState);
9898

include/vsg/state/BindDescriptorSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace vsg
7474
void record(CommandBuffer& commandBuffer) const override;
7575

7676
protected:
77-
virtual ~BindDescriptorSets() {}
77+
~BindDescriptorSets() override {}
7878

7979
struct VulkanData
8080
{

include/vsg/state/Buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace vsg
6060
virtual bool compile(Context& context);
6161

6262
protected:
63-
virtual ~Buffer();
63+
~Buffer() override;
6464

6565
struct VulkanData
6666
{

include/vsg/state/BufferInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace vsg
7474
vk_buffer<ModifiedCount> copiedModifiedCounts;
7575

7676
protected:
77-
virtual ~BufferInfo();
77+
~BufferInfo() override;
7878
};
7979
VSG_type_name(vsg::BufferInfo);
8080

include/vsg/state/BufferView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace vsg
4242
virtual void compile(Context& context);
4343

4444
protected:
45-
virtual ~BufferView();
45+
~BufferView() override;
4646

4747
struct VulkanData
4848
{

include/vsg/state/ColorBlendState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace vsg
4444
void apply(Context& context, VkGraphicsPipelineCreateInfo& pipelineInfo) const override;
4545

4646
protected:
47-
virtual ~ColorBlendState();
47+
~ColorBlendState() override;
4848
};
4949
VSG_type_name(vsg::ColorBlendState);
5050

include/vsg/state/ComputePipeline.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace vsg
4545
VkPipeline vk(uint32_t deviceID) const { return _implementation[deviceID]->_pipeline; }
4646

4747
protected:
48-
virtual ~ComputePipeline();
48+
~ComputePipeline() override;
4949

5050
struct Implementation : public Inherit<Object, Implementation>
5151
{
@@ -80,7 +80,7 @@ namespace vsg
8080
void compile(Context& context) override;
8181

8282
public:
83-
virtual ~BindComputePipeline();
83+
~BindComputePipeline() override;
8484
};
8585
VSG_type_name(vsg::BindComputePipeline);
8686

include/vsg/state/DepthStencilState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace vsg
4343
void apply(Context& context, VkGraphicsPipelineCreateInfo& pipelineInfo) const override;
4444

4545
protected:
46-
virtual ~DepthStencilState();
46+
~DepthStencilState() override;
4747
};
4848
VSG_type_name(vsg::DepthStencilState);
4949

include/vsg/state/DescriptorBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace vsg
4646
void write(Output& output) const override;
4747

4848
protected:
49-
virtual ~DescriptorBuffer();
49+
~DescriptorBuffer() override;
5050
};
5151
VSG_type_name(vsg::DescriptorBuffer)
5252

include/vsg/state/DescriptorSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace vsg
8585
};
8686

8787
protected:
88-
virtual ~DescriptorSet();
88+
~DescriptorSet() override;
8989

9090
vk_buffer<ref_ptr<Implementation>> _implementation;
9191
};

0 commit comments

Comments
 (0)