diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-12-11 00:53:26 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-11 03:13:30 +0100 |
commit | 5b61409358b31699e36eb9057f633a42f7fe6563 (patch) | |
tree | ccaf628b7b264f6db4629bf151e581da2b462f6d /qt-ui/tagwidget.cpp | |
parent | 1e92a8e648ba2a66fb4d06e2037c958890a55535 (diff) | |
download | subsurface-5b61409358b31699e36eb9057f633a42f7fe6563.tar.gz |
Use delete instead of free() in c++
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/tagwidget.cpp')
-rw-r--r-- | qt-ui/tagwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/tagwidget.cpp b/qt-ui/tagwidget.cpp index 457f66c74..2b180bab6 100644 --- a/qt-ui/tagwidget.cpp +++ b/qt-ui/tagwidget.cpp @@ -166,7 +166,7 @@ void TagWidget::keyPressEvent(QKeyEvent *e) { if (e->key() == Qt::Key_Tab) { // let's pretend this is a comma instead QKeyEvent *fakeEvent = new QKeyEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(",")); GroupedLineEdit::keyPressEvent(fakeEvent); - free(fakeEvent); + delete fakeEvent; } else { GroupedLineEdit::keyPressEvent(e); } |