From e29b61ccc177de836020b23482c7d04f41b69856 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 6 Jun 2021 17:26:12 +0100 Subject: [PATCH] Fix build error with selection class --- include/tool/selection.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/tool/selection.h b/include/tool/selection.h index 315f1f815a..f86f123972 100644 --- a/include/tool/selection.h +++ b/include/tool/selection.h @@ -154,11 +154,9 @@ public: template T* FirstOfKind() const { - auto refType = T( nullptr ).Type(); - for( auto item : m_items ) { - if( item->Type() == refType ) + if( IsA( item ) ) return static_cast ( item ); }