diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-28 09:05:13 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-28 09:05:13 +0300 |
commit | d799388b021fe9a0163b6f970c836b858a137449 (patch) | |
tree | 65e13c4f8507c3d8fff09ceff35244b3daf5c207 /intern/ghost/intern/GHOST_Window.h | |
parent | bb16a3af7f8eb7a686d316237c5a74f72ce5be21 (diff) |
Cleanup: quiet unused argument warnings and minor changes in GHOST
Diffstat (limited to 'intern/ghost/intern/GHOST_Window.h')
-rw-r--r-- | intern/ghost/intern/GHOST_Window.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_Window.h b/intern/ghost/intern/GHOST_Window.h index 1c0991bba30..396691fa161 100644 --- a/intern/ghost/intern/GHOST_Window.h +++ b/intern/ghost/intern/GHOST_Window.h @@ -74,7 +74,7 @@ class GHOST_Window : public GHOST_IWindow { */ virtual bool getValid() const override { - return m_context != NULL; + return m_context != nullptr; } /** @@ -283,8 +283,9 @@ class GHOST_Window : public GHOST_IWindow { float getNativePixelSize(void) override { - if (m_nativePixelSize > 0.0f) + if (m_nativePixelSize > 0.0f) { return m_nativePixelSize; + } return 1.0f; } @@ -298,7 +299,8 @@ class GHOST_Window : public GHOST_IWindow { } #ifdef WITH_INPUT_IME - virtual void beginIME(int32_t x, int32_t y, int32_t w, int32_t h, bool completed) override + virtual void beginIME( + int32_t /*x*/, int32_t /*y*/, int32_t /*w*/, int32_t /*h*/, bool /*completed*/) override { /* do nothing temporarily if not in windows */ } |