diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-06 17:20:12 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-06 17:20:12 +0200 |
commit | d9a149a230f9b320113020789beb78a883da3b40 (patch) | |
tree | 64925d938067e97b76d142cf915a5e1ce840246f /src/keeper.cpp | |
parent | 5fcbc757f62cdc9698a8f783864141f40fdff34e (diff) | |
download | lanes-d9a149a230f9b320113020789beb78a883da3b40.tar.gz lanes-d9a149a230f9b320113020789beb78a883da3b40.tar.bz2 lanes-d9a149a230f9b320113020789beb78a883da3b40.zip |
Converted a few more raw string pointers to std::string_view
Diffstat (limited to 'src/keeper.cpp')
-rw-r--r-- | src/keeper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keeper.cpp b/src/keeper.cpp index d99cc50..3e806f9 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
@@ -827,7 +827,7 @@ void Keepers::initialize(Universe& U_, lua_State* L_, int const nbKeepers_, int | |||
827 | keeper_.L = _K; | 827 | keeper_.L = _K; |
828 | 828 | ||
829 | // Give a name to the state | 829 | // Give a name to the state |
830 | lua_pushfstring(_K, "Keeper #%d", i_ + 1); // L_: settings _K: "Keeper #n" | 830 | std::ignore = luaG_pushstringview(_K, "Keeper #%d", i_ + 1); // L_: settings _K: "Keeper #n" |
831 | if constexpr (HAVE_DECODA_SUPPORT()) { | 831 | if constexpr (HAVE_DECODA_SUPPORT()) { |
832 | lua_pushvalue(_K, -1); // _K: "Keeper #n" Keeper #n" | 832 | lua_pushvalue(_K, -1); // _K: "Keeper #n" Keeper #n" |
833 | lua_setglobal(_K, "decoda_name"); // L_: settings _K: "Keeper #n" | 833 | lua_setglobal(_K, "decoda_name"); // L_: settings _K: "Keeper #n" |