summaryrefslogtreecommitdiffstats
path: root/async/src
diff options
context:
space:
mode:
Diffstat (limited to 'async/src')
-rw-r--r--async/src/async.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/async/src/async.cpp b/async/src/async.cpp
index c780878..6f28084 100644
--- a/async/src/async.cpp
+++ b/async/src/async.cpp
@@ -54,7 +54,7 @@ void Private::Execution::releaseFuture()
54 54
55bool Private::Execution::errorWasHandled() const 55bool Private::Execution::errorWasHandled() const
56{ 56{
57 Execution * const exec = this; 57 Execution *exec = const_cast<Execution*>(this);
58 while (exec) { 58 while (exec) {
59 if (exec->executor->hasErrorFunc()) { 59 if (exec->executor->hasErrorFunc()) {
60 return true; 60 return true;