comparison view/Overview.cpp @ 854:c17719e488c9

Fix some potential null-pointer derefs, and simplify some logic where loops were used with an unconditional "break" that meant they could only happen once (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 12:04:22 +0100
parents 7792b7667f74
children 2857e6352b06 4a578a360011
comparison
equal deleted inserted replaced
853:99f96cacde36 854:c17719e488c9
25 //#define DEBUG_OVERVIEW 1 25 //#define DEBUG_OVERVIEW 1
26 26
27 27
28 Overview::Overview(QWidget *w) : 28 Overview::Overview(QWidget *w) :
29 View(w, false), 29 View(w, false),
30 m_clickedInRange(false) 30 m_clickedInRange(false),
31 m_dragCentreFrame(0)
31 { 32 {
32 setObjectName(tr("Overview")); 33 setObjectName(tr("Overview"));
33 m_followPan = false; 34 m_followPan = false;
34 m_followZoom = false; 35 m_followZoom = false;
35 setPlaybackFollow(PlaybackIgnore); 36 setPlaybackFollow(PlaybackIgnore);