From c5f7d797cda42ccf826b414e5d33b911e93ffe7b Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 17 May 2018 11:04:08 +1000 Subject: Use nullptr instead of 0 in headers as this diminishes the number of warnings. --- include/Platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/Platform.h') diff --git a/include/Platform.h b/include/Platform.h index ad927fdf2..0b730944f 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -314,7 +314,7 @@ class Window { protected: WindowID wid; public: - Window() noexcept : wid(0), cursorLast(cursorInvalid) { + Window() noexcept : wid(nullptr), cursorLast(cursorInvalid) { } Window(const Window &source) = delete; Window(Window &&) = delete; @@ -327,7 +327,7 @@ public: Window &operator=(Window &&) = delete; virtual ~Window(); WindowID GetID() const noexcept { return wid; } - bool Created() const noexcept { return wid != 0; } + bool Created() const noexcept { return wid != nullptr; } void Destroy(); PRectangle GetPosition() const; void SetPosition(PRectangle rc); -- cgit v1.2.3