Просмотр исходного кода

vk_memory_manager: Reorder constructor initializer list in terms of member declaration order

Reorders members in the order that they would actually be initialized
in. Silences a -Wreorder warning.
Lioncash 7 лет назад
Родитель
Сommit
16ea93c11e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/video_core/renderer_vulkan/vk_memory_manager.cpp

+ 1 - 1
src/video_core/renderer_vulkan/vk_memory_manager.cpp

@@ -238,7 +238,7 @@ bool VKMemoryManager::AllocMemory(vk::MemoryPropertyFlags wanted_properties, u32
 
 VKMemoryCommitImpl::VKMemoryCommitImpl(VKMemoryAllocation* allocation, vk::DeviceMemory memory,
                                        u8* data, u64 begin, u64 end)
-    : allocation{allocation}, memory{memory}, data{data}, interval(std::make_pair(begin, end)) {}
+    : interval(std::make_pair(begin, end)), memory{memory}, allocation{allocation}, data{data} {}
 
 VKMemoryCommitImpl::~VKMemoryCommitImpl() {
     allocation->Free(this);