mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
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(","));
|
QKeyEvent *fakeEvent = new QKeyEvent(e->type(), Qt::Key_Comma, e->modifiers(), QString(","));
|
||||||
GroupedLineEdit::keyPressEvent(fakeEvent);
|
GroupedLineEdit::keyPressEvent(fakeEvent);
|
||||||
free(fakeEvent);
|
delete fakeEvent;
|
||||||
} else {
|
} else {
|
||||||
GroupedLineEdit::keyPressEvent(e);
|
GroupedLineEdit::keyPressEvent(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue