mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
GameListCtrl: use unique_ptr for underlying game list items
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@ -65,17 +66,9 @@ private:
|
||||
std::vector<int> m_FlagImageIndex;
|
||||
std::vector<int> m_PlatformImageIndex;
|
||||
std::vector<int> m_EmuStateImageIndex;
|
||||
std::vector<GameListItem*> m_ISOFiles;
|
||||
|
||||
void ClearIsoFiles()
|
||||
{
|
||||
while (!m_ISOFiles.empty()) // so lazy
|
||||
{
|
||||
delete m_ISOFiles.back();
|
||||
m_ISOFiles.pop_back();
|
||||
}
|
||||
}
|
||||
std::vector<std::unique_ptr<GameListItem>> m_ISOFiles;
|
||||
|
||||
void ClearIsoFiles() { m_ISOFiles.clear(); }
|
||||
int last_column;
|
||||
int last_sort;
|
||||
wxSize lastpos;
|
||||
|
Reference in New Issue
Block a user