Minor refactorings and codestyle cleanup.

This commit is contained in:
Jonas Trappenberg
2015-01-10 23:59:06 -08:00
parent 60f34788fb
commit 87e597510c
5 changed files with 247 additions and 249 deletions

View File

@@ -137,7 +137,8 @@ public:
static int stepsPerTact()
{
return qMax( 1, ticksPerTact() / DefaultBeatsPerTact );
int steps = ticksPerTact() / DefaultBeatsPerTact;
return qMax( 1, steps );
}
static void setTicksPerTact( tick_t _tpt )

View File

@@ -91,9 +91,9 @@ public:
virtual ~Note();
// used by GUI
inline void setSelected( const bool _selected ){ m_selected = _selected; }
inline void setOldKey( const int _oldKey ){ m_oldKey = _oldKey; }
inline void setOldPos( const MidiTime & _oldPos ){ m_oldPos = _oldPos; }
inline void setSelected( const bool _selected ) { m_selected = _selected; }
inline void setOldKey( const int _oldKey ) { m_oldKey = _oldKey; }
inline void setOldPos( const MidiTime & _oldPos ) { m_oldPos = _oldPos; }
inline void setOldLength( const MidiTime & _oldLength )
{
m_oldLength = _oldLength;

View File

@@ -341,7 +341,7 @@ private:
volume_t m_lastNoteVolume;
panning_t m_lastNotePanning;
int m_startKey; // first key when drawing
int m_startKey; // first key when drawing
int m_lastKey;
editModes m_editMode;