Commit 979d8f4d authored by Kai Koehne's avatar Kai Koehne Committed by Eike Ziller
Browse files

Core: Fix msvc warning about strdup being deprecated

"warning: C4996: 'strdup': The POSIX name for this item is deprecated.
Instead, use the ISO C++ conformant name: _strdup."

Change-Id: Ic2335664c4d2baf74eaa201ba4a85e8af3575bfb
Reviewed-by: default avatarEike Ziller <>
parent c58197ed
......@@ -106,7 +106,7 @@ static int theId(const char *str)
if (lastUid == 0)
res = ++lastUid;
sh.str = strdup(sh.str);
sh.str = qstrdup(sh.str);
idFromString[sh] = res;
stringFromId.append(QByteArray::fromRawData(sh.str, sh.n));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment