From: Kern Sibbald Date: Sun, 22 Jul 2007 15:33:06 +0000 (+0000) Subject: Eliminate compiler warnings X-Git-Tag: Release-7.0.0~5961 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e117733b3e46cca462c422063e069f6f0ecddf55;p=bacula%2Fbacula Eliminate compiler warnings git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5224 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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()) {