Removed set-but-unused variable 'pos'

New warning in GCC 4.6.0. Plenty of other cases.
This commit is contained in:
Thorbjørn Lindeijer
2011-04-26 11:42:50 +02:00
parent 905b59d3ec
commit 68e7c57a99

View File

@@ -278,8 +278,8 @@ void CustomDragAndDrop::enter(QWidget *target, QPoint globalPos)
void CustomDragAndDrop::leave(QWidget *target, QPoint globalPos) void CustomDragAndDrop::leave(QWidget *target, QPoint globalPos)
{ {
Q_UNUSED(globalPos)
if (target) { if (target) {
QPoint pos = target->mapFromGlobal(globalPos);
QDragLeaveEvent event; QDragLeaveEvent event;
QApplication::sendEvent(target, &event); QApplication::sendEvent(target, &event);
} else { } else {