From 979d8f4d2bc2ac6699845f5a6766eb5d6e0131b2 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 16 Apr 2012 09:31:22 +0200 Subject: [PATCH] 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: Eike Ziller --- src/plugins/coreplugin/id.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/id.cpp b/src/plugins/coreplugin/id.cpp index a394b3c6180..2f7a8510c3c 100644 --- a/src/plugins/coreplugin/id.cpp +++ b/src/plugins/coreplugin/id.cpp @@ -106,7 +106,7 @@ static int theId(const char *str) if (lastUid == 0) stringFromId.append(QByteArray()); res = ++lastUid; - sh.str = strdup(sh.str); + sh.str = qstrdup(sh.str); idFromString[sh] = res; stringFromId.append(QByteArray::fromRawData(sh.str, sh.n)); }