diff options
author | Sergio Martins <sergio.martins@kdab.com> | 2013-04-08 10:10:08 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-08 21:24:36 (GMT) |
commit | cbdd21927ef525a7037087c8cd9dbc0736298e17 (patch) | |
tree | 8927552a5a987b5ea812d1d088b9d6fbbaaf59c3 /tools | |
parent | 1e835a7419fac61da23d8e0c09c835a3a2aa0e45 (diff) | |
download | Qt-cbdd21927ef525a7037087c8cd9dbc0736298e17.zip Qt-cbdd21927ef525a7037087c8cd9dbc0736298e17.tar.gz Qt-cbdd21927ef525a7037087c8cd9dbc0736298e17.tar.bz2 |
Use delete[] instead of delete
This fix isn't needed in Qt5 as the code doesn't exist there.
Change-Id: Icb8e0b45e5bc926cf0432ec3c990bc703f7b7b04
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qdbus/qdbuscpp2xml/qdbuscpp2xml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qdbus/qdbuscpp2xml/qdbuscpp2xml.cpp b/tools/qdbus/qdbuscpp2xml/qdbuscpp2xml.cpp index 3966cd9..b2ec44d 100644 --- a/tools/qdbus/qdbuscpp2xml/qdbuscpp2xml.cpp +++ b/tools/qdbus/qdbuscpp2xml/qdbuscpp2xml.cpp @@ -280,8 +280,8 @@ void MocParser::parse(const char *fname, QIODevice *io, int lineNum) MocParser::~MocParser() { foreach (QMetaObject mo, objects) { - delete const_cast<char *>(mo.d.stringdata); - delete const_cast<uint *>(mo.d.data); + delete[] const_cast<char *>(mo.d.stringdata); + delete[] const_cast<uint *>(mo.d.data); } } |