mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +00:00
DiscIO: Use = default
to define a trivial destructor
This commit is contained in:
parent
f8bf35e6f0
commit
7123fcd19b
6 changed files with 6 additions and 16 deletions
|
@ -78,9 +78,7 @@ void SectorReader::SetChunkSize(int block_cnt)
|
||||||
SetSectorSize(m_block_size);
|
SetSectorSize(m_block_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
SectorReader::~SectorReader()
|
SectorReader::~SectorReader() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
const SectorReader::Cache* SectorReader::FindCacheLine(u64 block_num)
|
const SectorReader::Cache* SectorReader::FindCacheLine(u64 block_num)
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,7 +61,7 @@ std::string GetName(BlobType blob_type, bool translate);
|
||||||
class BlobReader
|
class BlobReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~BlobReader() {}
|
virtual ~BlobReader() = default;
|
||||||
|
|
||||||
virtual BlobType GetBlobType() const = 0;
|
virtual BlobType GetBlobType() const = 0;
|
||||||
virtual std::unique_ptr<BlobReader> CopyReader() const = 0;
|
virtual std::unique_ptr<BlobReader> CopyReader() const = 0;
|
||||||
|
|
|
@ -70,9 +70,7 @@ std::unique_ptr<CompressedBlobReader> CompressedBlobReader::Create(File::IOFile
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
CompressedBlobReader::~CompressedBlobReader()
|
CompressedBlobReader::~CompressedBlobReader() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
std::unique_ptr<BlobReader> CompressedBlobReader::CopyReader() const
|
std::unique_ptr<BlobReader> CompressedBlobReader::CopyReader() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,9 +41,7 @@ VolumeGC::VolumeGC(std::unique_ptr<BlobReader> reader) : m_reader(std::move(read
|
||||||
m_converted_banner = [this] { return LoadBannerFile(); };
|
m_converted_banner = [this] { return LoadBannerFile(); };
|
||||||
}
|
}
|
||||||
|
|
||||||
VolumeGC::~VolumeGC()
|
VolumeGC::~VolumeGC() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool VolumeGC::Read(u64 offset, u64 length, u8* buffer, const Partition& partition) const
|
bool VolumeGC::Read(u64 offset, u64 length, u8* buffer, const Partition& partition) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -159,9 +159,7 @@ VolumeWii::VolumeWii(std::unique_ptr<BlobReader> reader)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VolumeWii::~VolumeWii()
|
VolumeWii::~VolumeWii() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool VolumeWii::Read(u64 offset, u64 length, u8* buffer, const Partition& partition) const
|
bool VolumeWii::Read(u64 offset, u64 length, u8* buffer, const Partition& partition) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,9 +44,7 @@ WbfsFileReader::WbfsFileReader(File::IOFile file, const std::string& path)
|
||||||
m_wlba_table[i] = Common::swap16(m_wlba_table[i]);
|
m_wlba_table[i] = Common::swap16(m_wlba_table[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
WbfsFileReader::~WbfsFileReader()
|
WbfsFileReader::~WbfsFileReader() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
std::unique_ptr<BlobReader> WbfsFileReader::CopyReader() const
|
std::unique_ptr<BlobReader> WbfsFileReader::CopyReader() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue