From e117733b3e46cca462c422063e069f6f0ecddf55 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 22 Jul 2007 15:33:06 +0000 Subject: [PATCH] Eliminate compiler warnings git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5224 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/jobgraphs/jobplot.cpp | 2 +- bacula/src/qt-console/mainwin.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/src/qt-console/jobgraphs/jobplot.cpp b/bacula/src/qt-console/jobgraphs/jobplot.cpp index daec21a232..0523144bb4 100644 --- a/bacula/src/qt-console/jobgraphs/jobplot.cpp +++ b/bacula/src/qt-console/jobgraphs/jobplot.cpp @@ -427,7 +427,7 @@ void JobPlot::addCurve() */ void JobPlot::setPlotType(QString currentText) { - QwtPlotCurve::CurveStyle style; + QwtPlotCurve::CurveStyle style = QwtPlotCurve::NoCurve; if (currentText == "Fitted") { style = QwtPlotCurve::Lines; m_fileCurve->setCurveAttribute(QwtPlotCurve::Fitted); diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index 81deb3f3dc..64f38b5317 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -312,7 +312,8 @@ void MainWin::treeItemChanged(QTreeWidgetItem *currentitem, QTreeWidgetItem *pre if (m_isClosing) return; /* if closing the application, do nothing here */ Pages *previousPage, *nextPage; - Console *previousConsole, *nextConsole; + Console *previousConsole = NULL; + Console *nextConsole; /* remove all actions before adding actions appropriate for new page */ foreach(QAction* pageAction, treeWidget->actions()) { -- 2.39.5