mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
clang-modernize -use-nullptr
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
This commit is contained in:
parent
f28116b7da
commit
d802d39281
292 changed files with 1526 additions and 1526 deletions
|
@ -8,7 +8,7 @@
|
|||
namespace VolumeHandler
|
||||
{
|
||||
|
||||
DiscIO::IVolume* g_pVolume = NULL;
|
||||
DiscIO::IVolume* g_pVolume = nullptr;
|
||||
|
||||
DiscIO::IVolume *GetVolume()
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ void EjectVolume()
|
|||
// reading location ..." after you have started and stopped two
|
||||
// or three games
|
||||
delete g_pVolume;
|
||||
g_pVolume = NULL;
|
||||
g_pVolume = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,12 +33,12 @@ bool SetVolumeName(const std::string& _rFullPath)
|
|||
if (g_pVolume)
|
||||
{
|
||||
delete g_pVolume;
|
||||
g_pVolume = NULL;
|
||||
g_pVolume = nullptr;
|
||||
}
|
||||
|
||||
g_pVolume = DiscIO::CreateVolumeFromFilename(_rFullPath);
|
||||
|
||||
return (g_pVolume != NULL);
|
||||
return (g_pVolume != nullptr);
|
||||
}
|
||||
|
||||
void SetVolumeDirectory(const std::string& _rFullPath, bool _bIsWii, const std::string& _rApploader, const std::string& _rDOL)
|
||||
|
@ -46,7 +46,7 @@ void SetVolumeDirectory(const std::string& _rFullPath, bool _bIsWii, const std::
|
|||
if (g_pVolume)
|
||||
{
|
||||
delete g_pVolume;
|
||||
g_pVolume = NULL;
|
||||
g_pVolume = nullptr;
|
||||
}
|
||||
|
||||
g_pVolume = DiscIO::CreateVolumeFromDirectory(_rFullPath, _bIsWii, _rApploader, _rDOL);
|
||||
|
@ -54,7 +54,7 @@ void SetVolumeDirectory(const std::string& _rFullPath, bool _bIsWii, const std::
|
|||
|
||||
u32 Read32(u64 _Offset)
|
||||
{
|
||||
if (g_pVolume != NULL)
|
||||
if (g_pVolume != nullptr)
|
||||
{
|
||||
u32 Temp;
|
||||
g_pVolume->Read(_Offset, 4, (u8*)&Temp);
|
||||
|
@ -65,7 +65,7 @@ u32 Read32(u64 _Offset)
|
|||
|
||||
bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength)
|
||||
{
|
||||
if (g_pVolume != NULL && ptr)
|
||||
if (g_pVolume != nullptr && ptr)
|
||||
{
|
||||
g_pVolume->Read(_dwOffset, _dwLength, ptr);
|
||||
return true;
|
||||
|
@ -75,7 +75,7 @@ bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength)
|
|||
|
||||
bool RAWReadToPtr( u8* ptr, u64 _dwOffset, u64 _dwLength )
|
||||
{
|
||||
if (g_pVolume != NULL && ptr)
|
||||
if (g_pVolume != nullptr && ptr)
|
||||
{
|
||||
g_pVolume->RAWRead(_dwOffset, _dwLength, ptr);
|
||||
return true;
|
||||
|
@ -85,7 +85,7 @@ bool RAWReadToPtr( u8* ptr, u64 _dwOffset, u64 _dwLength )
|
|||
|
||||
bool IsValid()
|
||||
{
|
||||
return (g_pVolume != NULL);
|
||||
return (g_pVolume != nullptr);
|
||||
}
|
||||
|
||||
bool IsWii()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue