summaryrefslogtreecommitdiff
path: root/Source/DSPSpy
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2014-03-09 21:14:26 +0100
committerTillmann Karras <tilkax@gmail.com>2014-03-09 21:14:26 +0100
commitd802d392811be44d34ae9cd23f616db93e54c50f (patch)
treef9aa8831a0731ea246bd921d979f4bffa7f07bd0 /Source/DSPSpy
parentf28116b7da6aac6069084596dc4dbf866bdebfd8 (diff)
clang-modernize -use-nullptr
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
Diffstat (limited to 'Source/DSPSpy')
-rw-r--r--Source/DSPSpy/main_spy.cpp4
-rw-r--r--Source/DSPSpy/real_dsp.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/DSPSpy/main_spy.cpp b/Source/DSPSpy/main_spy.cpp
index a4c7800cb9..a003f04c60 100644
--- a/Source/DSPSpy/main_spy.cpp
+++ b/Source/DSPSpy/main_spy.cpp
@@ -51,7 +51,7 @@
// Used for communications with the DSP, such as dumping registers etc.
u16 dspbuffer[16 * 1024] __attribute__ ((aligned (0x4000)));
-static void *xfb = NULL;
+static void *xfb = nullptr;
void (*reboot)() = (void(*)())0x80001800;
GXRModeObj *rmode;
@@ -522,7 +522,7 @@ void InitGeneral()
// Obtain the preferred video mode from the system
// This will correspond to the settings in the Wii menu
- rmode = VIDEO_GetPreferredMode(NULL);
+ rmode = VIDEO_GetPreferredMode(nullptr);
// Allocate memory for the display in the uncached region
xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));
diff --git a/Source/DSPSpy/real_dsp.cpp b/Source/DSPSpy/real_dsp.cpp
index d792711543..c5df21e2d7 100644
--- a/Source/DSPSpy/real_dsp.cpp
+++ b/Source/DSPSpy/real_dsp.cpp
@@ -28,7 +28,7 @@ void RealDSP::Init()
u32 level;
_CPU_ISR_Disable(level);
- IRQ_Request(IRQ_DSP_DSP, dsp_irq_handler, NULL);
+ IRQ_Request(IRQ_DSP_DSP, dsp_irq_handler, nullptr);
_CPU_ISR_Restore(level);
}