aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.Core/WaitDialog.cs
diff options
context:
space:
mode:
Diffstat (limited to 'QtVsTools.Core/WaitDialog.cs')
-rw-r--r--QtVsTools.Core/WaitDialog.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/QtVsTools.Core/WaitDialog.cs b/QtVsTools.Core/WaitDialog.cs
index 819bdc76..cedc078c 100644
--- a/QtVsTools.Core/WaitDialog.cs
+++ b/QtVsTools.Core/WaitDialog.cs
@@ -56,8 +56,7 @@ namespace QtVsTools.Core
ThreadHelper.ThrowIfNotOnUIThread();
- bool canceled = false;
- int res = VsWaitDialog.HasCanceled(out canceled);
+ int res = VsWaitDialog.HasCanceled(out bool canceled);
if (res != VSConstants.S_OK)
return false;
@@ -82,8 +81,7 @@ namespace QtVsTools.Core
ThreadHelper.ThrowIfNotOnUIThread();
- IVsThreadedWaitDialog2 vsWaitDialog = null;
- factory.CreateInstance(out vsWaitDialog);
+ factory.CreateInstance(out IVsThreadedWaitDialog2 vsWaitDialog);
if (vsWaitDialog == null)
return null;
@@ -159,9 +157,8 @@ namespace QtVsTools.Core
ThreadHelper.ThrowIfNotOnUIThread();
- bool canceled = false;
int res = VsWaitDialog.UpdateProgress(message, progressText,
- statusBarText, currentStep, totalSteps, disableCancel, out canceled);
+ statusBarText, currentStep, totalSteps, disableCancel, out bool canceled);
if (res != VSConstants.S_OK)
return;
@@ -178,8 +175,7 @@ namespace QtVsTools.Core
ThreadHelper.ThrowIfNotOnUIThread();
Running = false;
- int canceled = 0;
- VsWaitDialog.EndWaitDialog(out canceled);
+ VsWaitDialog.EndWaitDialog(out int canceled);
Canceled = (canceled != 0);
}