From 69ba7d51a075921e530e5f74ef8f73a7127a7083 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Thu, 21 Nov 2024 15:48:10 +0100 Subject: [PATCH] Drop use of --- src/convertfunctor.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/convertfunctor.cpp b/src/convertfunctor.cpp index 25d43cbab9..ff0bfe9561 100644 --- a/src/convertfunctor.cpp +++ b/src/convertfunctor.cpp @@ -9,10 +9,6 @@ //---------------------------------------------------------------------------- -#include - -//---------------------------------------------------------------------------- - #include "bracketspan.h" #include "dir.h" #include "div.h" @@ -704,7 +700,8 @@ FunctorCode ConvertToCmnFunctor::VisitNote(Note *note) // Add the tie Object *tieStart = m_durationElements.front(); - for (Object *tieEnd : m_durationElements | std::views::drop(1)) { + for (Object *tieEnd : m_durationElements) { + if (tieStart == tieEnd) continue; Object *measure = tieStart->GetFirstAncestor(MEASURE); assert(measure); Tie *tie = new Tie();