aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2021-02-15 10:03:57 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2021-02-17 14:43:29 +0000
commit72d91dc94af1861c4374dab5698859149b21dbfd (patch)
tree3e51016b44c6a4db35fba150579e033bbdf2a274 /src/plugins/resourceeditor/qrceditor/resourcefile.cpp
parent1d27f894bb8454693ff5fc5979dda0d9090dc7a8 (diff)
Use qAsConst with non-const Qt containers in range-loops
... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/qrceditor/resourcefile.cpp')
-rw-r--r--src/plugins/resourceeditor/qrceditor/resourcefile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
index 85d9741e78..98306e45ec 100644
--- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
+++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
@@ -450,7 +450,7 @@ QString ResourceFile::absolutePath(const QString &rel_path) const
void ResourceFile::orderList()
{
- for (Prefix *p : m_prefix_list) {
+ for (Prefix *p : qAsConst(m_prefix_list)) {
std::sort(p->file_list.begin(), p->file_list.end(), [&](File *f1, File *f2) {
return *f1 < *f2;
});