diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2017-11-18 20:42:28 +0300 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2018-01-23 00:00:18 +0000 |
commit | 901bf1f7749e79a9fae2999d50131496dcaf4036 (patch) | |
tree | 1109c9c249540534fdbab19ffa54f98984c11518 /src/lib/corelib/tools/msvcinfo.cpp | |
parent | 46a700d8757badddadf4b3dbe06bfc2ad5ca9780 (diff) |
Use 'auto' keywords more for the allocated variables
Change-Id: I25ec97e64522d7fa486fcf408d8134cbbd8b24ea
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/msvcinfo.cpp')
-rw-r--r-- | src/lib/corelib/tools/msvcinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/tools/msvcinfo.cpp b/src/lib/corelib/tools/msvcinfo.cpp index 0a79df87e..0d22a9a56 100644 --- a/src/lib/corelib/tools/msvcinfo.cpp +++ b/src/lib/corelib/tools/msvcinfo.cpp @@ -124,7 +124,7 @@ public: static QStringList parseCommandLine(const QString &commandLine) { QStringList list; - wchar_t *buf = new wchar_t[commandLine.size() + 1]; + auto buf = new wchar_t[commandLine.size() + 1]; buf[commandLine.toWCharArray(buf)] = 0; int argCount = 0; LPWSTR *args = CommandLineToArgvW(buf, &argCount); |