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/lanes.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/lanes.cpp')
-rw-r--r-- | src/lanes.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp index a36e051..c3d0928 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -354,7 +354,9 @@ LUAG_FUNC(lane_new) | |||
354 | lua_Debug _ar; | 354 | lua_Debug _ar; |
355 | lua_pushvalue(L, 1); // L: ... lane func | 355 | lua_pushvalue(L, 1); // L: ... lane func |
356 | lua_getinfo(L, ">S", &_ar); // L: ... lane | 356 | lua_getinfo(L, ">S", &_ar); // L: ... lane |
357 | lua_pushfstring(_L2, "%s:%d", _ar.short_src, _ar.linedefined); // L: ... lane L2: "<name>" | 357 | std::ignore = luaG_pushstringview( |
358 | _L2, "%s:%d", _ar.short_src, _ar.linedefined | ||
359 | ); // L: ... lane L2: "<name>" | ||
358 | } | 360 | } |
359 | lane->changeDebugName(-1); | 361 | lane->changeDebugName(-1); |
360 | lua_pop(_L2, 1); // L: ... lane L2: | 362 | lua_pop(_L2, 1); // L: ... lane L2: |
@@ -706,7 +708,7 @@ LUAG_FUNC(configure) | |||
706 | lua_pushcclosure(L_, LG_require, 1); // L_: settings M lanes.require | 708 | lua_pushcclosure(L_, LG_require, 1); // L_: settings M lanes.require |
707 | lua_setfield(L_, -2, "require"); // L_: settings M | 709 | lua_setfield(L_, -2, "require"); // L_: settings M |
708 | 710 | ||
709 | lua_pushfstring( | 711 | std::ignore = luaG_pushstringview( |
710 | L_, | 712 | L_, |
711 | "%d.%d.%d", | 713 | "%d.%d.%d", |
712 | LANES_VERSION_MAJOR, | 714 | LANES_VERSION_MAJOR, |