Style: Replace header guards with #pragma once
This commit is contained in:
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_INPUT_EVENT_H
|
||||
#define TEST_INPUT_EVENT_H
|
||||
#pragma once
|
||||
|
||||
#include "core/input/input_event.h"
|
||||
#include "core/math/rect2.h"
|
||||
@ -111,5 +110,3 @@ TEST_CASE("[InputEvent] Test xformed_by") {
|
||||
CHECK(iemm2->get_position().is_equal_approx(Vector2(2.0f, 3.0f)));
|
||||
}
|
||||
} // namespace TestInputEvent
|
||||
|
||||
#endif // TEST_INPUT_EVENT_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_INPUT_EVENT_KEY_H
|
||||
#define TEST_INPUT_EVENT_KEY_H
|
||||
#pragma once
|
||||
|
||||
#include "core/input/input_event.h"
|
||||
#include "core/os/keyboard.h"
|
||||
@ -335,5 +334,3 @@ TEST_CASE("[IsMatch] Keys are correctly matched") {
|
||||
CHECK(key3.is_match(loc_ref, false) == true);
|
||||
}
|
||||
} // namespace TestInputEventKey
|
||||
|
||||
#endif // TEST_INPUT_EVENT_KEY_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_INPUT_EVENT_MOUSE_H
|
||||
#define TEST_INPUT_EVENT_MOUSE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/input/input_event.h"
|
||||
#include "tests/test_macros.h"
|
||||
@ -77,5 +76,3 @@ TEST_CASE("[InputEventMouse] Setting the global mouse position works correctly")
|
||||
CHECK(mousekey.get_global_position() != Vector2{ 1, 1 });
|
||||
}
|
||||
} // namespace TestInputEventMouse
|
||||
|
||||
#endif // TEST_INPUT_EVENT_MOUSE_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_SHORTCUT_H
|
||||
#define TEST_SHORTCUT_H
|
||||
#pragma once
|
||||
|
||||
#include "core/input/input_event.h"
|
||||
#include "core/input/shortcut.h"
|
||||
@ -231,5 +230,3 @@ TEST_CASE("[Shortcut] Equal arrays should be recognized as such.") {
|
||||
CHECK(s.is_event_array_equal(same, different3) == false);
|
||||
}
|
||||
} // namespace TestShortcut
|
||||
|
||||
#endif // TEST_SHORTCUT_H
|
||||
|
||||
Reference in New Issue
Block a user