diff options
author | Joerg <JoergAtGithub@worldwartweb.com> | 2023-05-29 12:54:09 +0200 |
---|---|---|
committer | Joerg <JoergAtGithub@worldwartweb.com> | 2023-05-29 12:54:09 +0200 |
commit | 76e9cc008254e67844566267ab7468aa1833279e (patch) | |
tree | 02db53877ff0847fcc92d8bfa967e556197bd897 | |
parent | a1b928e2ec341ae961d18089b87d81601ef7bdf9 (diff) |
Fixed non explicit cast warning from size_t to int
-rw-r--r-- | src/library/treeitemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/treeitemmodel.cpp b/src/library/treeitemmodel.cpp index d86dd9167b..bf056ee859 100644 --- a/src/library/treeitemmodel.cpp +++ b/src/library/treeitemmodel.cpp @@ -183,7 +183,7 @@ void TreeItemModel::insertTreeItemRows( TreeItem* pParentItem = getItem(parent); DEBUG_ASSERT(pParentItem != nullptr); - beginInsertRows(parent, position, position + rows.size() - 1); + beginInsertRows(parent, position, position + static_cast<int>(rows.size()) - 1); pParentItem->insertChildren(position, std::move(rows)); endInsertRows(); } |