Skip to content

Commit dbdbf5b

Browse files
committed
cppcheck fixes
1 parent 28ad64d commit dbdbf5b

10 files changed

Lines changed: 11 additions & 11 deletions

include/vsg/io/DatabasePager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ namespace vsg
112112
Nodes take_all(CompileResult& result);
113113

114114
protected:
115-
virtual ~DatabaseQueue();
115+
~DatabaseQueue() override;
116116

117117
std::mutex _mutex;
118118
std::condition_variable _cv;
@@ -168,7 +168,7 @@ namespace vsg
168168
ref_ptr<DeleteQueue> deleteQueue;
169169

170170
protected:
171-
virtual ~DatabasePager();
171+
~DatabasePager() override;
172172

173173
void requestDiscarded(PagedLOD* plod);
174174

include/vsg/io/Options.h

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

124124
protected:
125-
virtual ~Options();
125+
~Options() override;
126126
};
127127
VSG_type_name(vsg::Options);
128128

include/vsg/state/BindDescriptorSet.h

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

153153
protected:
154-
virtual ~BindDescriptorSet() {}
154+
~BindDescriptorSet() override {}
155155

156156
struct VulkanData
157157
{

include/vsg/state/ComputePipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace vsg
5050
struct Implementation : public Inherit<Object, Implementation>
5151
{
5252
Implementation(Context& context, Device* device, const PipelineLayout* pipelineLayout, const ShaderStage* shaderStage);
53-
virtual ~Implementation();
53+
~Implementation() override;
5454

5555
VkPipeline _pipeline;
5656
ref_ptr<Device> _device;

include/vsg/state/DescriptorSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace vsg
7676
static void recycle(ref_ptr<DescriptorSet::Implementation>& dsi);
7777

7878
protected:
79-
virtual ~Implementation();
79+
~Implementation() override;
8080

8181
friend DescriptorPool;
8282

include/vsg/state/DescriptorSetLayout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace vsg
7070
{
7171
Implementation(Device* device, VkDescriptorSetLayoutCreateFlags createFlags, const DescriptorSetLayoutBindings& descriptorSetLayoutBindings, const DescriptorSetLayoutBindingFlags& descriptorSetLayoutBindingFlags);
7272

73-
virtual ~Implementation();
73+
~Implementation() override;
7474

7575
ref_ptr<Device> _device;
7676
VkDescriptorSetLayout _descriptorSetLayout;

include/vsg/state/GraphicsPipeline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ namespace vsg
9494
{
9595
Implementation(Context& context, Device* device, const RenderPass* renderPass, const PipelineLayout* pipelineLayout, const ShaderStages& shaderStages, const GraphicsPipelineStates& pipelineStates, uint32_t subpass);
9696

97-
virtual ~Implementation();
97+
~Implementation() override;
9898

9999
GraphicsPipelineStates _pipelineStates;
100100
VkPipeline _pipeline;

include/vsg/state/PipelineLayout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace vsg
6060
{
6161
Implementation(Device* device, const DescriptorSetLayouts& descriptorSetLayouts, const PushConstantRanges& pushConstantRanges, VkPipelineLayoutCreateFlags flags = 0);
6262

63-
virtual ~Implementation();
63+
~Implementation() override;
6464

6565
VkPipelineLayout _pipelineLayout;
6666

include/vsg/state/Sampler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace vsg
6565
{
6666
Implementation(Device* device, const VkSamplerCreateInfo& createSamplerInfo);
6767

68-
virtual ~Implementation();
68+
~Implementation() override;
6969

7070
VkSampler _sampler;
7171
ref_ptr<Device> _device;

include/vsg/state/ShaderModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ namespace vsg
111111
{
112112
Implementation(Device* device, ShaderModule* shader);
113113

114-
virtual ~Implementation();
114+
~Implementation() override;
115115

116116
VkShaderModule _shaderModule;
117117
ref_ptr<Device> _device;

0 commit comments

Comments
 (0)