From a4836dec9a7be69de50275ce08b0bd7719c8cdba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Thu, 26 Sep 2024 23:00:08 +0200 Subject: [PATCH] Use const for global variables --- src/SFML/Audio/SoundFileReaderOgg.cpp | 2 +- test/Window/Event.test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Audio/SoundFileReaderOgg.cpp b/src/SFML/Audio/SoundFileReaderOgg.cpp index 9ea735657..e102bf94f 100644 --- a/src/SFML/Audio/SoundFileReaderOgg.cpp +++ b/src/SFML/Audio/SoundFileReaderOgg.cpp @@ -69,7 +69,7 @@ long tell(void* data) return position ? static_cast(*position) : -1; } -ov_callbacks callbacks = {&read, &seek, nullptr, &tell}; +const ov_callbacks callbacks = {&read, &seek, nullptr, &tell}; } // namespace namespace sf::priv diff --git a/test/Window/Event.test.cpp b/test/Window/Event.test.cpp index 198c60c9d..4ea22af9f 100644 --- a/test/Window/Event.test.cpp +++ b/test/Window/Event.test.cpp @@ -7,7 +7,7 @@ namespace { -struct +const struct { std::string_view operator()(const sf::Event::Closed&) const {