aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-02-22 14:31:23 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2021-02-22 14:31:23 -0600
commit7579457e897cba6d358bd65dba1ee05e1db87c06 (patch)
treec742e1a05c254af7f9d1e26d044e3769a2dcb550
parentd32ad43665e9218258ff57ed98b8ed457e313ee5 (diff)
Avoid use of QImageReader copy constructor
-rw-r--r--src/courtroom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index cc97a405..4782e393 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -3103,7 +3103,7 @@ void Courtroom::play_preanim(bool immediate)
return;
}
else {
- QImageReader s_reader = QImageReader(anim_to_find);
+ QImageReader s_reader(anim_to_find);
int image_count = s_reader.imageCount();
if (image_count <= 1) {
preanim_done();