Skip to content

Commit

Permalink
prevent deprecation of qAsConst in qt6
Browse files Browse the repository at this point in the history
use std::const from c++17
  • Loading branch information
janbar committed Oct 5, 2024
1 parent e5429d5 commit 5e35657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpxlistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ bool GPXListModel::removeItem(const QModelIndex& index)
QString GPXListModel::findFileById(int bid)
{
osmin::LockGuard<QRecursiveMutex> g(m_lock);
for (GPXItem* item : qAsConst(m_items))
for (GPXItem* item : std::as_const(m_items))
{
if (item->bigId() == bid)
return QDir(m_root).absolutePath().append(QDir::separator())
Expand Down

0 comments on commit 5e35657

Please sign in to comment.