From 69efdc0dafb788aeffbf2a708b0a3bd285f78647 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 18:41:44 -0400 Subject: [PATCH] CBasicViewport: Make use of constexpr --- src/Editor/CBasicViewport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Editor/CBasicViewport.cpp b/src/Editor/CBasicViewport.cpp index 260800c7..d6d833e7 100644 --- a/src/Editor/CBasicViewport.cpp +++ b/src/Editor/CBasicViewport.cpp @@ -216,14 +216,14 @@ bool CBasicViewport::IsCursorVisible() const bool CBasicViewport::IsMouseInputActive() const { - static const FMouseInputs skMoveButtons = EMouseInput::MiddleButton | EMouseInput::RightButton; + static constexpr FMouseInputs skMoveButtons = EMouseInput::MiddleButton | EMouseInput::RightButton; return ((mButtonsPressed & skMoveButtons) != 0); } bool CBasicViewport::IsKeyboardInputActive() const { - static const FKeyInputs skMoveKeys = EKeyInput::Q | EKeyInput::W | EKeyInput::E | - EKeyInput::A | EKeyInput::S | EKeyInput::D; + static constexpr FKeyInputs skMoveKeys = EKeyInput::Q | EKeyInput::W | EKeyInput::E | + EKeyInput::A | EKeyInput::S | EKeyInput::D; return ((mKeysPressed & skMoveKeys) != 0); }