aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-17 11:04:08 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-17 11:04:08 +1000
commita3ac8760d2f9fd6aad9cee595df34a81909be0f0 (patch)
tree0b4fbab5616e4884b465acc9dfe43cc0649f74e2 /include/Platform.h
parentda7a7a8065eca0f848434652530482bde6b2030e (diff)
downloadscintilla-mirror-a3ac8760d2f9fd6aad9cee595df34a81909be0f0.tar.gz
Backport: Use nullptr instead of 0 in headers as this diminishes the number of warnings.
Backport of changeset 6957:06ab85d42c89.
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Platform.h b/include/Platform.h
index d049ccc45..0cbca2f40 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);