mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +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
|
@ -32,7 +32,7 @@ bool DSound::CreateBuffer()
|
|||
dsbdesc.lpwfxFormat = (WAVEFORMATEX *)&pcmwf;
|
||||
dsbdesc.guid3DAlgorithm = DS3DALG_DEFAULT;
|
||||
|
||||
HRESULT res = ds->CreateSoundBuffer(&dsbdesc, &dsBuffer, NULL);
|
||||
HRESULT res = ds->CreateSoundBuffer(&dsbdesc, &dsBuffer, nullptr);
|
||||
if (SUCCEEDED(res))
|
||||
{
|
||||
dsBuffer->SetCurrentPosition(0);
|
||||
|
@ -43,7 +43,7 @@ bool DSound::CreateBuffer()
|
|||
{
|
||||
// Failed.
|
||||
PanicAlertT("Sound buffer creation failed: %08x", res);
|
||||
dsBuffer = NULL;
|
||||
dsBuffer = nullptr;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ void DSound::SetVolume(int volume)
|
|||
// This is in "dBA attenuation" from 0 to -10000, logarithmic
|
||||
m_volume = (int)floor(log10((float)volume) * 5000.0f) - 10000;
|
||||
|
||||
if (dsBuffer != NULL)
|
||||
if (dsBuffer != nullptr)
|
||||
dsBuffer->SetVolume(m_volume);
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ void DSound::Clear(bool mute)
|
|||
{
|
||||
m_muted = mute;
|
||||
|
||||
if (dsBuffer != NULL)
|
||||
if (dsBuffer != nullptr)
|
||||
{
|
||||
if (m_muted)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue