From 5b61409358b31699e36eb9057f633a42f7fe6563 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 11 Dec 2013 00:53:26 +0100 Subject: Use delete instead of free() in c++ Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/tagwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-70-g09d2