Use const for global variables

This commit is contained in:
Lukas Dürrenberger 2024-09-26 23:00:08 +02:00
parent a9c56da99e
commit a4836dec9a
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ long tell(void* data)
return position ? static_cast<long>(*position) : -1; return position ? static_cast<long>(*position) : -1;
} }
ov_callbacks callbacks = {&read, &seek, nullptr, &tell}; const ov_callbacks callbacks = {&read, &seek, nullptr, &tell};
} // namespace } // namespace
namespace sf::priv namespace sf::priv

View File

@ -7,7 +7,7 @@
namespace namespace
{ {
struct const struct
{ {
std::string_view operator()(const sf::Event::Closed&) const std::string_view operator()(const sf::Event::Closed&) const
{ {