Skip to content

Commit 9d91ad4

Browse files
committed
cppcheck fixes
1 parent abc52dc commit 9d91ad4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/vsg/core/ScratchMemory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace vsg
4242
delete[] buffer;
4343
}
4444

45-
uint8_t* align(uint8_t* p) const
45+
static uint8_t* align(uint8_t* p)
4646
{
4747
auto alignment = sizeof(p);
4848
uint8_t* new_p = reinterpret_cast<uint8_t*>(((reinterpret_cast<size_t>(p) + alignment - 1) / alignment) * alignment);

include/vsg/vk/DeviceFeatures.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ namespace vsg
6464
void* data() const;
6565

6666
protected:
67-
~DeviceFeatures();
67+
~DeviceFeatures() override;
6868

6969
struct FeatureHeader
7070
{

include/vsg/vk/vk_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace vsg
3232
T& operator[](uint32_t) { return value; }
3333
const T& operator[](uint32_t) const { return value; }
3434

35-
uint32_t size() const { return 1; }
35+
constexpr static uint32_t size() { return 1; }
3636

3737
void clear() { value = {}; }
3838

0 commit comments

Comments
 (0)