forked from qt-creator/qt-creator
QmlDesigner: Fix uninitialized variables
It shows very well why only one variable per statement should be initialized. Change-Id: I4bef73066583998be545c8930b3f9cbea5bc4e4b Reviewed-by: Knud Dollereder <knud.dollereder@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -818,8 +818,10 @@ void TimelineRulerSectionItem::setPlaybackLoopTimes(float startFrame, float endF
|
|||||||
void TimelineRulerSectionItem::extendPlaybackLoop(const QList<qreal> &positions, bool reset)
|
void TimelineRulerSectionItem::extendPlaybackLoop(const QList<qreal> &positions, bool reset)
|
||||||
{
|
{
|
||||||
if (m_playbackLoopEnabled) {
|
if (m_playbackLoopEnabled) {
|
||||||
qreal originalLeft, left = m_playbackLoopStart;
|
qreal originalLeft = m_playbackLoopStart;
|
||||||
qreal originalRight, right = m_playbackLoopEnd;
|
qreal left = m_playbackLoopStart;
|
||||||
|
qreal originalRight = m_playbackLoopEnd;
|
||||||
|
qreal right = m_playbackLoopEnd;
|
||||||
|
|
||||||
if (reset) {
|
if (reset) {
|
||||||
if (positions.count() >= 2) {
|
if (positions.count() >= 2) {
|
||||||
|
Reference in New Issue
Block a user