summaryrefslogtreecommitdiffstats
path: root/smglobals.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2024-08-31 12:11:40 +0200
committerArno <arno@disconnect.de>2024-08-31 12:11:40 +0200
commit714bca79318b828c3ca8af1c9a4e7a65ad5fa578 (patch)
tree172405f8018b0557af7f733d04742c816523f4e5 /smglobals.cpp
parent66606fd5cc6bd3d377cc35d9ce2e267b694410fc (diff)
downloadSheMov-714bca79318b828c3ca8af1c9a4e7a65ad5fa578.tar.gz
SheMov-714bca79318b828c3ca8af1c9a4e7a65ad5fa578.tar.bz2
SheMov-714bca79318b828c3ca8af1c9a4e7a65ad5fa578.zip
Fix some detached container warnings
Dunno if necessary, but they came up in the previous debugging session, so just do it...
Diffstat (limited to 'smglobals.cpp')
-rw-r--r--smglobals.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/smglobals.cpp b/smglobals.cpp
index d0165a9..0612b13 100644
--- a/smglobals.cpp
+++ b/smglobals.cpp
@@ -20,10 +20,10 @@
SmGlobals *SmGlobals::mInstance = nullptr;
SmGlobals::~SmGlobals(){
- for(const auto &model : qAsConst(mModels)){
+ for(const auto &model : std::as_const(mModels)){
model->deleteLater();
}
- for(QWidget *w : mWidgets){
+ for(auto w : std::as_const(mWidgets)){
w->close();
}
}