[vlc-commits] Qt: epg: uninitialized members (cid #1049043, #1049042, #1049041)

Francois Cartegnie git at videolan.org
Wed Jan 25 11:16:29 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 25 11:15:50 2017 +0100| [dc828f678c941b092061b67d0ab3a787cc8e16c4] | committer: Francois Cartegnie

Qt: epg: uninitialized members (cid #1049043, #1049042, #1049041)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dc828f678c941b092061b67d0ab3a787cc8e16c4
---

 modules/gui/qt/components/epg/EPGRuler.cpp  | 1 +
 modules/gui/qt/components/epg/EPGView.cpp   | 1 +
 modules/gui/qt/components/epg/EPGWidget.cpp | 1 +
 3 files changed, 3 insertions(+)

diff --git a/modules/gui/qt/components/epg/EPGRuler.cpp b/modules/gui/qt/components/epg/EPGRuler.cpp
index 46a87cc..77c7b97 100644
--- a/modules/gui/qt/components/epg/EPGRuler.cpp
+++ b/modules/gui/qt/components/epg/EPGRuler.cpp
@@ -39,6 +39,7 @@ EPGRuler::EPGRuler( QWidget* parent )
     setMinimumHeight( height() );
     setMaximumHeight( height() );
     m_offset = 0;
+    m_scale = 1.0;
 }
 
 void EPGRuler::setScale( double scale )
diff --git a/modules/gui/qt/components/epg/EPGView.cpp b/modules/gui/qt/components/epg/EPGView.cpp
index 16bc016..15e6a93 100644
--- a/modules/gui/qt/components/epg/EPGView.cpp
+++ b/modules/gui/qt/components/epg/EPGView.cpp
@@ -85,6 +85,7 @@ EPGView::EPGView( QWidget *parent ) : QGraphicsView( parent )
 
     m_startTime = QDateTime();
     m_maxTime = m_startTime;
+    m_scaleFactor = 1.0;
 
     EPGGraphicsScene *EPGscene = new EPGGraphicsScene( this );
 
diff --git a/modules/gui/qt/components/epg/EPGWidget.cpp b/modules/gui/qt/components/epg/EPGWidget.cpp
index f6c0c4a..d670dbd 100644
--- a/modules/gui/qt/components/epg/EPGWidget.cpp
+++ b/modules/gui/qt/components/epg/EPGWidget.cpp
@@ -41,6 +41,7 @@
 EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
 {
     b_input_type_known = false;
+    i_event_source_type = ITEM_TYPE_UNKNOWN;
     m_rulerWidget = new EPGRuler( this );
     m_epgView = new EPGView( this );
     m_channelsWidget = new EPGChannels( this, m_epgView );



More information about the vlc-commits mailing list