summaryrefslogtreecommitdiff
path: root/lily/staff-performer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lily/staff-performer.cc')
-rw-r--r--lily/staff-performer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lily/staff-performer.cc b/lily/staff-performer.cc
index 4c8cc8d6f7..45d47a2e63 100644
--- a/lily/staff-performer.cc
+++ b/lily/staff-performer.cc
@@ -97,9 +97,9 @@ Staff_performer::new_instrument_str ()
void
Staff_performer::play (Audio_element* p)
{
- if (dynamic_cast<Audio_item *> (p))
+ if (Audio_item *ai = dynamic_cast<Audio_item *> (p))
{
- audio_staff_p_->add_audio_item ( (Audio_item*)p);
+ audio_staff_p_->add_audio_item (ai);
}
Performer::play (p);
}