mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 03:36:06 +00:00
Declare locally used function static
This commit is contained in:
parent
5c3188581b
commit
1f6c935fe1
@ -61,7 +61,7 @@ surface array_to_surface(const std::array<uint32_t, w * h>& arr)
|
||||
return surf;
|
||||
}
|
||||
|
||||
std::vector<uint32_t> surface_to_vec(const surface& surf)
|
||||
static std::vector<uint32_t> surface_to_vec(const surface& surf)
|
||||
{
|
||||
const_surface_lock lock{surf};
|
||||
const uint32_t* const pixels = lock.pixels();
|
||||
|
Loading…
x
Reference in New Issue
Block a user