mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Use delete instead of free() in c++
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1e92a8e648
commit
5b61409358
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue