std::size_t -> size_t

Removing std prefix from all size_t.
This commit is contained in:
sukibaby
2024-10-01 01:46:26 -07:00
committed by teejusb
parent 8d125f3951
commit e0b254968d
161 changed files with 755 additions and 755 deletions
+4 -4
View File
@@ -141,7 +141,7 @@ bool NetworkManager::IsUrlAllowed(const std::string& url)
// subdomain wildcards; ".domain" doesn't match "*.domain", but "a.domain" does
if (allowedHost.substr(0, 2) == "*." && host.length() >= allowedHost.length())
{
std::size_t pos = host.length() - allowedHost.length() + 1;
size_t pos = host.length() - allowedHost.length() + 1;
if (host.substr(pos) == allowedHost.substr(1))
return true;
}
@@ -340,7 +340,7 @@ int WebSocketHandle::Send(lua_State *L)
void *udata = luaL_checkudata(L, 1, "WebSocketHandle");
auto handle = *static_cast<WebSocketHandlePtr*>(udata);
std::size_t len;
size_t len;
const char *s = luaL_checklstring(L, 2, &len);
std::string data(s, len);
@@ -453,7 +453,7 @@ public:
{
if (lua_isstring(L, -1))
{
std::size_t len;
size_t len;
const char *s = lua_tolstring(L, -1, &len);
args.body = std::string(s, len);
}
@@ -469,7 +469,7 @@ public:
{
if (lua_isstring(L, -1))
{
std::size_t len;
size_t len;
const char *s = lua_tolstring(L, -1, &len);
args.multipartBoundary = std::string(s, len);
}