From: Manuel Nickschas Date: Wed, 31 Oct 2018 23:39:21 +0000 (+0100) Subject: funchelpers: Support the invocation of non-void callables X-Git-Tag: test-travis-01~98 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=a22e08480288685d73d9abd18c6a1087451c388b;hp=a22e08480288685d73d9abd18c6a1087451c388b funchelpers: Support the invocation of non-void callables Let invokeWithArgsList() handle and return the return value of non-void callables wrapped in a QVariant. To avoid special-casing, the invocation of a void callable also returns a (default-constructed, thus invalid) QVariant. To indicate failure, wrap the QVariant in a boost::optional that is empty if the callable could not be invoked. ---