From 24353ca248a545eb8ba90995d448fc03846cebfc Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 16 May 2009 15:14:47 +0200 Subject: [PATCH] PianoRoll: removed unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed unused variable volumeHandles in PianoRoll::computeSelectedNotes(bool) which as a side-effect also fixes /usr/include/qt4/QtCore/qvector.h: In member function ‘void PianoRoll::computeSelectedNotes(bool)’: /usr/include/qt4/QtCore/qvector.h:421: warning: dereferencing pointer ‘’ does break strict-aliasing rules /usr/include/qt4/QtCore/qvector.h:114: note: initialized from here --- src/gui/piano_roll.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index fd45c1dda..67c3c1d34 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -1775,8 +1775,6 @@ void pianoRoll::computeSelectedNotes(bool shift) { const noteVector & notes = m_pattern->notes(); - QPolygon volumeHandles; - for( noteVector::const_iterator it = notes.begin(); it != notes.end(); ++it ) {