Skip to content

Commit 8a7f807

Browse files
authored
Fix return type of GetAllocationNextPtr
Returning `void* const` doesn't mean anything (produces a warning with -Wignored-qualifiers). Based on usage, it looks like the returned pointer is expected to point at const data, so I've fixed the declaration to reflect that.
1 parent a88bc52 commit 8a7f807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/vk_mem_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10928,7 +10928,7 @@ class VmaBlockVector
1092810928
uint32_t GetAlgorithm() const { return m_Algorithm; }
1092910929
bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; }
1093010930
float GetPriority() const { return m_Priority; }
10931-
void* const GetAllocationNextPtr() const { return m_pMemoryAllocateNext; }
10931+
const void* GetAllocationNextPtr() const { return m_pMemoryAllocateNext; }
1093210932
// To be used only while the m_Mutex is locked. Used during defragmentation.
1093310933
size_t GetBlockCount() const { return m_Blocks.size(); }
1093410934
// To be used only while the m_Mutex is locked. Used during defragmentation.

0 commit comments

Comments
 (0)