Skip to content

Commit 3cb19df

Browse files
committed
cppcheck fixes
1 parent dbdbf5b commit 3cb19df

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

include/vsg/app/CompileManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ namespace vsg
9191
std::atomic_uint failedCompileCount{0};
9292

9393
protected:
94-
~CompileManager();
94+
~CompileManager() override;
9595

9696
using CompileTraversals = ThreadSafeQueue<ref_ptr<CompileTraversal>>;
9797
size_t numCompileTraversals = 0;

include/vsg/app/CompileTraversal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace vsg
103103
void apply(View& view) override;
104104

105105
protected:
106-
~CompileTraversal();
106+
~CompileTraversal() override;
107107

108108
void add(ref_ptr<Context> context, Framebuffer& framebuffer, ref_ptr<TransferTask> transferTask, ref_ptr<View> view, const ResourceRequirements& resourceRequirements);
109109
void addViewDependentState(ViewDependentState& viewDependentState, ref_ptr<Device> device, ref_ptr<TransferTask> transferTask, const ResourceRequirements& resourceRequirements);

include/vsg/utils/GpuAnnotation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace vsg
4040
void leave(const vsg::SourceLocation* sl, uint64_t& reference, CommandBuffer& commandBuffer, const Object* object) const override;
4141

4242
protected:
43-
virtual ~GpuAnnotation();
43+
~GpuAnnotation() override;
4444
};
4545
VSG_type_name(vsg::GpuAnnotation);
4646

include/vsg/utils/ShaderCompiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace vsg
1616
{
1717
public:
1818
ShaderCompiler();
19-
virtual ~ShaderCompiler();
19+
~ShaderCompiler() override;
2020

2121
/// return true if shader compilation is supported by this build of VulkanSceneGraph
2222
/// you can also use the VSG_SUPPORTS_ShaderCompiler define provided by include/vsg/core/Version.h

include/vsg/utils/ShaderSet.h

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

198198
protected:
199-
virtual ~ShaderSet();
199+
~ShaderSet() override;
200200

201201
AttributeBinding _nullAttributeBinding;
202202
DescriptorBinding _nullDescriptorBinding;

include/vsg/utils/SharedObjects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace vsg
7373
void report(vsg::LogOutput& output);
7474

7575
protected:
76-
virtual ~SharedObjects();
76+
~SharedObjects() override;
7777

7878
mutable std::recursive_mutex _mutex;
7979
std::map<std::type_index, ref_ptr<Object>> _defaults;

include/vsg/vk/DeviceMemory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ namespace vsg
9898
}
9999

100100
template<typename... Args>
101-
static ref_ptr<MappedData> create(DeviceMemory* deviceMemory, VkDeviceSize offset, VkMemoryMapFlags flags, Data::Properties properties, Args... args)
101+
static ref_ptr<MappedData> create(DeviceMemory* deviceMemory, VkDeviceSize offset, VkMemoryMapFlags flags, const Data::Properties& properties, Args... args)
102102
{
103103
auto data = ref_ptr<MappedData>(new MappedData(deviceMemory, offset, flags, args...));
104104
data->properties = properties;

0 commit comments

Comments
 (0)