From 95773f6bb7a137d905ab39b6e85bd45230811a58 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 19 Feb 2020 10:23:26 -0700 Subject: [PATCH] fix compiler warning about dynamic_cast(ptr_to_T) This is in a Route method, so it is obvious that dynamic_cast(this) will return true --- libs/ardour/route.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index ef6a724738..4889c249a2 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2627,7 +2627,7 @@ Route::set_state (const XMLNode& node, int version) else if (dynamic_cast(this)) { _presentation_info.set_flags ( PresentationInfo::Flag (file_flags | PresentationInfo::MidiTrack) ); } - else if (dynamic_cast(this)) { + else { //no idea what this is, so let's call it an audio bus _presentation_info.set_flags ( PresentationInfo::Flag (file_flags | PresentationInfo::AudioBus) ); }