From 3c4a0ed2b45a8983ab1b99054140682a76fed3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hellstr=C3=B6mer?= Date: Mon, 9 Sep 2024 01:18:13 +0200 Subject: [PATCH] Fixed narrowing warning qsizetype -> int --- sources/TerminalStrip/terminalstrip.cpp | 2 +- sources/editor/elementscene.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/TerminalStrip/terminalstrip.cpp b/sources/TerminalStrip/terminalstrip.cpp index 2222a50fb..81ffef105 100644 --- a/sources/TerminalStrip/terminalstrip.cpp +++ b/sources/TerminalStrip/terminalstrip.cpp @@ -639,7 +639,7 @@ bool TerminalStrip::isBridgeable(const QVector> &re // Get the physical terminal and pos auto first_physical_terminal = first_real_terminal->physicalTerminal(); QVector physical_vector{first_physical_terminal}; - QVector pos_vector{m_physical_terminals.indexOf(first_physical_terminal)}; + QVector pos_vector{m_physical_terminals.indexOf(first_physical_terminal)}; auto bridge_ = isBridged(first_real_terminal); //bool to know at the end of this function if at least one terminal is not bridged diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index a9a64b65b..2b556e6f5 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -746,7 +746,7 @@ void ElementScene::addItems(QVector items) */ void ElementScene::removeItems(QVector items) { - const int previous_selected_count{selectedItems().size()}; + const qsizetype previous_selected_count{selectedItems().size()}; //block signal to avoid multiple emit of selection changed, //we emit this signal only once at the end of this function.