fix some compiler warnings
This commit is contained in:
parent
e044f26801
commit
29d5b2d69c
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
|
||||
namespace Ms {
|
||||
|
||||
static const int DEFAULT_POS_X = 300;
|
||||
static const int DEFAULT_POS_Y = 100;
|
||||
|
||||
//---------------------------------------------------------
|
||||
// PlayPanel
|
||||
//---------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue