aboutsummaryrefslogtreecommitdiff
path: root/lib/qt_connection_util.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-08 09:28:58 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-08 09:29:53 +0200
commit955e1314ebfd83d6f44d88547159e6492035681e (patch)
tree11fd116f62c1aa8caaf49b5d250e1d8b82da54fd /lib/qt_connection_util.h
parent64948b6840032b04ef00bfe207baa29dd445d141 (diff)
downloadlibquotient-955e1314ebfd83d6f44d88547159e6492035681e.tar.gz
libquotient-955e1314ebfd83d6f44d88547159e6492035681e.zip
CI: use GCC 11 and (therefore) ubuntu-22.04
GCC 10 ICE's[1] in qt_connection_util.h code; and ubuntu-20.04 doesn't have GCC 11. Also: patch a Qt 5.15 header when compiling with GCC because a combination of Qt 5.15 and GCC 11 in turn triggers QTBUG-91909/90568... Which in turn required moving Qt setup before the build environment setup. Life's fun. [1] Internal Compiler Error
Diffstat (limited to 'lib/qt_connection_util.h')
-rw-r--r--lib/qt_connection_util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/qt_connection_util.h b/lib/qt_connection_util.h
index edcdc572..90bc3f9b 100644
--- a/lib/qt_connection_util.h
+++ b/lib/qt_connection_util.h
@@ -91,8 +91,9 @@ inline auto connectSingleShot(auto* sender, auto signal, ContextT* context,
(context->*slot)(args...);
};
# endif
- return _impl::connect<_impl::SingleShot>(sender, signal, context,
- std::move(boundSlot), connType);
+ return _impl::connect<_impl::SingleShot>(
+ sender, signal, context,
+ std::forward<decltype(boundSlot)>(boundSlot), connType);
} else {
return _impl::connect<_impl::SingleShot>(sender, signal, context, slot,
connType);