diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-20 17:52:04 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-20 17:52:04 +0200 |
commit | e17ab4ffe5b675b0163368cd893d2e703c874675 (patch) | |
tree | d147a9d6139b18e8ae75ed4741fbff42b124c7fc /src/lindafactory.cpp | |
parent | eb090da027012292e8856dc01856cde8880d3467 (diff) | |
download | lanes-e17ab4ffe5b675b0163368cd893d2e703c874675.tar.gz lanes-e17ab4ffe5b675b0163368cd893d2e703c874675.tar.bz2 lanes-e17ab4ffe5b675b0163368cd893d2e703c874675.zip |
Use string_view for Linda names
Diffstat (limited to '')
-rw-r--r-- | src/lindafactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lindafactory.cpp b/src/lindafactory.cpp index 015baf4..890cc96 100644 --- a/src/lindafactory.cpp +++ b/src/lindafactory.cpp | |||
@@ -127,6 +127,6 @@ DeepPrelude* LindaFactory::newDeepObjectInternal(lua_State* L_) const | |||
127 | // The deep data is allocated separately of Lua stack; we might no longer be around when last reference to it is being released. | 127 | // The deep data is allocated separately of Lua stack; we might no longer be around when last reference to it is being released. |
128 | // One can use any memory allocation scheme. Just don't use L's allocF because we don't know which state will get the honor of GCing the linda | 128 | // One can use any memory allocation scheme. Just don't use L's allocF because we don't know which state will get the honor of GCing the linda |
129 | Universe* const _U{ universe_get(L_) }; | 129 | Universe* const _U{ universe_get(L_) }; |
130 | Linda* const _linda{ new (_U) Linda{ _U, _linda_group, _linda_name.data(), _linda_name.size() } }; | 130 | Linda* const _linda{ new (_U) Linda{ _U, _linda_group, _linda_name } }; |
131 | return _linda; | 131 | return _linda; |
132 | } | 132 | } |