From 2fa0b073f67f34ccbc3f0168bce2140b71f47d3b Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Mon, 17 Oct 2011 15:57:15 +0200 Subject: Initialize pointers, fix correct gcc 4.6 warning Change-Id: I53a63013e8c440bacd21bacb8afecd9f055cbce4 Reviewed-by: Christiaan Janssen --- src/plugins/qmlprofiler/qmlprofilertool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 6b12dd2982..6809e53124 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -179,8 +179,8 @@ void QmlProfilerTool::showContextMenu(const QPoint &position) QMenu menu; QAction *loadAction = menu.addAction(tr("Load QML Trace")); QAction *saveAction = menu.addAction(tr("Save QML Trace")); - QAction *copyRowAction; - QAction *copyTableAction; + QAction *copyRowAction = 0; + QAction *copyTableAction = 0; if (senderView) { if (senderView->selectedItem().isValid()) copyRowAction = menu.addAction(tr("Copy Row")); -- cgit v1.2.3