summaryrefslogtreecommitdiffstats
path: root/api/logic/java/JavaChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/java/JavaChecker.cpp')
-rw-r--r--api/logic/java/JavaChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/java/JavaChecker.cpp b/api/logic/java/JavaChecker.cpp
index 9ba3933f..ca0f4bde 100644
--- a/api/logic/java/JavaChecker.cpp
+++ b/api/logic/java/JavaChecker.cpp
@@ -75,8 +75,8 @@ void JavaChecker::stderrReady()
void JavaChecker::finished(int exitcode, QProcess::ExitStatus status)
{
killTimer.stop();
- QProcessPtr _process;
- _process.swap(process);
+ QProcessPtr _process = process;
+ process.reset();
JavaCheckResult result;
{