summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2014-12-03 16:36:13 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2014-12-03 16:44:16 +0100
commit8ed59f12ed21e69113a85851732d64b6de1de0c3 (patch)
treecb89dc94e30096277e8a20073a8d1a2bf860071d
parente47474cf91be5fa1d12bf329526d938be8293638 (diff)
Silence uninited variable compiler warnings
The code is correct but some compilers may still warn about dragData not getting initialized. Silence them. Change-Id: Ib52321667fc5094e22ebbef538b72b5477e6f10b Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
-rw-r--r--src/client/qwaylanddatadevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylanddatadevice.cpp b/src/client/qwaylanddatadevice.cpp
index 83e74ce6c..edf73a56a 100644
--- a/src/client/qwaylanddatadevice.cpp
+++ b/src/client/qwaylanddatadevice.cpp
@@ -126,7 +126,7 @@ void QWaylandDataDevice::data_device_drop()
qDebug() << Q_FUNC_INFO << drag << m_dragOffer.data();
- QMimeData *dragData;
+ QMimeData *dragData = 0;
Qt::DropActions supportedActions;
if (drag) {
dragData = drag->mimeData();