[Bf-blender-cvs] [34e04ccde21] master: Cleanup: fix compiler warnings

Brecht Van Lommel noreply at git.blender.org
Thu Jun 30 17:22:57 CEST 2022


Commit: 34e04ccde21e21246d82e3d5a54860dc85029ea1
Author: Brecht Van Lommel
Date:   Thu Jun 30 16:52:04 2022 +0200
Branches: master
https://developer.blender.org/rB34e04ccde21e21246d82e3d5a54860dc85029ea1

Cleanup: fix compiler warnings

"override" should be used either for all methods or none, otherwise Clang gives
warnings. Adding it for all platforms is a bigger change.

===================================================================

M	intern/ghost/intern/GHOST_System.h

===================================================================

diff --git a/intern/ghost/intern/GHOST_System.h b/intern/ghost/intern/GHOST_System.h
index 42f0a773dea..d5558be3444 100644
--- a/intern/ghost/intern/GHOST_System.h
+++ b/intern/ghost/intern/GHOST_System.h
@@ -209,10 +209,8 @@ class GHOST_System : public GHOST_ISystem {
 
   GHOST_TSuccess getCursorPositionClientRelative(const GHOST_IWindow *window,
                                                  int32_t &x,
-                                                 int32_t &y) const override;
-  GHOST_TSuccess setCursorPositionClientRelative(GHOST_IWindow *window,
-                                                 int32_t x,
-                                                 int32_t y) override;
+                                                 int32_t &y) const;
+  GHOST_TSuccess setCursorPositionClientRelative(GHOST_IWindow *window, int32_t x, int32_t y);
 
   /**
    * Inherited from GHOST_ISystem but left pure virtual



More information about the Bf-blender-cvs mailing list