summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-04-25 09:24:17 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2017-04-25 08:11:05 +0000
commit0cfcebb955099498c483a9dcc55863f833ba550f (patch)
treee3c410638bdba783e93e32053a8d8284bc051cb4 /src/corelib/thread
parent09f6227653b192c1a062c52f41eb36c3ab35fc25 (diff)
QThread: fix headersclean with C++17
GCC's -Wshadow complained about the re-use of 'args' as the parameter for the lambda. Fix by renaming it to largs (lambda-args) instead. Change-Id: Ia9e65b82b98ee56181d754868354988399496eef Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/thread/qthread.h b/src/corelib/thread/qthread.h
index 801bbfe02a..a061394deb 100644
--- a/src/corelib/thread/qthread.h
+++ b/src/corelib/thread/qthread.h
@@ -169,9 +169,9 @@ public:
template <typename Function, typename... Args>
explicit QThreadCreateThread(Function &&f, Args &&... args)
: m_future(std::async(std::launch::deferred,
- [f = static_cast<typename std::decay<Function>::type>(std::forward<Function>(f))](auto &&... args) mutable -> void
+ [f = static_cast<typename std::decay<Function>::type>(std::forward<Function>(f))](auto &&... largs) mutable -> void
{
- (void)std::invoke(std::move(f), std::forward<decltype(args)>(args)...);
+ (void)std::invoke(std::move(f), std::forward<decltype(largs)>(largs)...);
}, std::forward<Args>(args)...))
{
}