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 /deep_test | |
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 'deep_test')
-rw-r--r-- | deep_test/deep_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deep_test/deep_test.cpp b/deep_test/deep_test.cpp index c330cbe..c75c360 100644 --- a/deep_test/deep_test.cpp +++ b/deep_test/deep_test.cpp | |||
@@ -57,7 +57,7 @@ void MyDeepFactory::deleteDeepObjectInternal(lua_State* const L_, DeepPrelude* c | |||
57 | { | 57 | { |
58 | MyDeepUserdata* const _self{ static_cast<MyDeepUserdata*>(MyDeepFactory::Instance.toDeep(L, 1)) }; | 58 | MyDeepUserdata* const _self{ static_cast<MyDeepUserdata*>(MyDeepFactory::Instance.toDeep(L, 1)) }; |
59 | _self->inUse.fetch_add(1, std::memory_order_seq_cst); | 59 | _self->inUse.fetch_add(1, std::memory_order_seq_cst); |
60 | lua_pushfstring(L, "%p:deep(%d)", lua_topointer(L, 1), _self->val); | 60 | std::ignore = luaG_pushstringview(L, "%p:deep(%d)", lua_topointer(L, 1), _self->val); |
61 | _self->inUse.fetch_sub(1, std::memory_order_seq_cst); | 61 | _self->inUse.fetch_sub(1, std::memory_order_seq_cst); |
62 | return 1; | 62 | return 1; |
63 | } | 63 | } |
@@ -177,7 +177,7 @@ struct MyClonableUserdata | |||
177 | [[nodiscard]] static int clonable_tostring(lua_State* L) | 177 | [[nodiscard]] static int clonable_tostring(lua_State* L) |
178 | { | 178 | { |
179 | MyClonableUserdata* self = static_cast<MyClonableUserdata*>(lua_touserdata(L, 1)); | 179 | MyClonableUserdata* self = static_cast<MyClonableUserdata*>(lua_touserdata(L, 1)); |
180 | lua_pushfstring(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); | 180 | std::ignore = luaG_pushstringview(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); |
181 | return 1; | 181 | return 1; |
182 | } | 182 | } |
183 | 183 | ||