]> git.sur5r.net Git - bacula/bacula/commitdiff
Eliminate compiler warnings
authorKern Sibbald <kern@sibbald.com>
Sun, 22 Jul 2007 15:33:06 +0000 (15:33 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 22 Jul 2007 15:33:06 +0000 (15:33 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5224 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/jobgraphs/jobplot.cpp
bacula/src/qt-console/mainwin.cpp

index daec21a232afc56aac873b7598d7926a61ca989d..0523144bb4b82ae084eaa73c2efa7f42a2a8a422 100644 (file)
@@ -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);
index 81deb3f3dc14f2ea9783ff0c905b7ff13c229519..64f38b5317508af3f078a9658669392dd6d9af16 100644 (file)
@@ -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()) {