summaryrefslogtreecommitdiff
path: root/ui/progresstask.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2022-11-19 00:03:51 -0500
committerRusty Wagner <rusty.wagner@gmail.com>2022-11-19 00:03:51 -0500
commitae69370eb054e2d1679aff0247ad3e217df62a62 (patch)
tree0816cbad888a42da9b3564a43e4b4b8ad05bf1c6 /ui/progresstask.h
parent8a033af394c195504f97b62b54b515c3c797d742 (diff)
Fix issues with building using Visual Studio 2022
Diffstat (limited to 'ui/progresstask.h')
-rw-r--r--ui/progresstask.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/progresstask.h b/ui/progresstask.h
index 6f15da42..de4580ae 100644
--- a/ui/progresstask.h
+++ b/ui/progresstask.h
@@ -510,7 +510,8 @@ class BINARYNINJAUIAPI BackgroundThread : public QObject
// construction.
std::mutex taskMutex;
taskMutex.lock();
- ProgressTask* task = new ProgressTask(parent, title, text, cancel, [&](ProgressFunction progress) {
+ ProgressTask* task;
+ task = new ProgressTask(parent, title, text, cancel, [&](ProgressFunction progress) {
auto innerProgress = [=](size_t cur, size_t max) {
// Fix dialog disappearing if the backgrounded task thinks it's done
if (cur >= max)