Skip to content

Commit

Permalink
Update: provide Wiki links for new functions
Browse files Browse the repository at this point in the history
Make a trivial change to cause rebuild - take out unneeded `QStringLiteral`
wrappers around perfectly usable raw C strings.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
  • Loading branch information
SlySven committed Feb 16, 2021
1 parent 02536fb commit 11e2fbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TLuaInterpreter.cpp
Expand Up @@ -15255,12 +15255,12 @@ int TLuaInterpreter::exportJsonMap(lua_State* L)
{
Host* pHost = &getHostFromLua(L);
if (!pHost || !pHost->mpMap || !pHost->mpMap->mpMapper || !pHost->mpMap->mpMapper->mp2dMap) {
return warnArgumentValue(L, __func__, QStringLiteral("no map present or loaded"));
return warnArgumentValue(L, __func__, "no map present or loaded");
}

auto dest = getVerifiedString(L, __func__, 1, "export pathFileName");
if (dest.isEmpty()) {
return warnArgumentValue(L, __func__, QStringLiteral("a non-empty path and file name to write to must be provided"));
return warnArgumentValue(L, __func__, "a non-empty path and file name to write to must be provided");
}

if (auto [result, message] = pHost->mpMap->writeJsonMapFile(dest); !result) {
Expand All @@ -15276,12 +15276,12 @@ int TLuaInterpreter::importJsonMap(lua_State* L)
{
Host* pHost = &getHostFromLua(L);
if (!pHost || !pHost->mpMap || !pHost->mpMap->mpMapper || !pHost->mpMap->mpMapper->mp2dMap) {
return warnArgumentValue(L, __func__, QStringLiteral("no map present or loaded"));
return warnArgumentValue(L, __func__, "no map present or loaded");
}

auto source = getVerifiedString(L, __func__, 1, "import pathFileName");
if (source.isEmpty()) {
return warnArgumentValue(L, __func__, QStringLiteral("a non-empty path and file name to read to must be provided"));
return warnArgumentValue(L, __func__, "a non-empty path and file name to read to must be provided");
}

if (auto [result, message] = pHost->mpMap->readJsonMapFile(source); !result) {
Expand Down

0 comments on commit 11e2fbe

Please sign in to comment.