fix some compiler warnings

This commit is contained in:
lasconic 2016-08-24 14:07:15 +02:00
parent e044f26801
commit 29d5b2d69c
2 changed files with 3 additions and 4 deletions

View file

@ -3302,11 +3302,13 @@ void Score::cmdTimeDelete()
Element* el = selection().element();
if (!el)
return;
ChordRest* cr;
ChordRest* cr = nullptr;
if (el->isNote())
cr = toNote(el)->chord();
else if (el->isChordRest())
cr = toChordRest(el);
else
return;
startSegment = cr->segment();
int endTick = startSegment->tick() + cr->duration().ticks();
endSegment = cr->measure()->findSegment(CR_TYPE, endTick);

View file

@ -28,9 +28,6 @@
namespace Ms {
static const int DEFAULT_POS_X = 300;
static const int DEFAULT_POS_Y = 100;
//---------------------------------------------------------
// PlayPanel
//---------------------------------------------------------