Fix string lifetime issue

dependabot/npm_and_yarn/Src/WebController/UI/websocket-extensions-0.1.4
Grzegorz Rychlik 2020-05-13 11:43:15 +02:00
parent c822094de5
commit 127caa252f
1 changed files with 5 additions and 5 deletions

View File

@ -34,11 +34,11 @@ namespace FSecure::Sql
{ {
switch (type) switch (type)
{ {
case SQL_HANDLE_ENV: return OBF("ENV"); case SQL_HANDLE_ENV: return OBF_STR("ENV");
case SQL_HANDLE_STMT: return OBF("STMT"); case SQL_HANDLE_STMT: return OBF_STR("STMT");
case SQL_HANDLE_DBC: return OBF("DBC"); case SQL_HANDLE_DBC: return OBF_STR("DBC");
case SQL_HANDLE_DESC: return OBF("DESC"); case SQL_HANDLE_DESC: return OBF_STR("DESC");
default: return ""; default: return ""s;
} }
}; };
throw std::runtime_error(OBF_STR("SQLAllocHandle for failed. handle type: ") + GetTypeString(type)); throw std::runtime_error(OBF_STR("SQLAllocHandle for failed. handle type: ") + GetTypeString(type));