Move QGenericRunnableHelper info QGenericRunnable
Because we can, and it prevents all the machinery from being exported by the Q_CORE_EXPORT on QRunnable. Change-Id: I80e0690956bff612f2048eefb2b64bc198835f1f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>bb10
parent
fdc29b9714
commit
acd675c38c
|
|
@ -35,7 +35,12 @@ public:
|
|||
bool autoDelete() const { return m_autoDelete; }
|
||||
void setAutoDelete(bool autoDelete) { m_autoDelete = autoDelete; }
|
||||
|
||||
protected:
|
||||
private:
|
||||
static Q_DECL_COLD_FUNCTION QRunnable *warnNullCallable();
|
||||
};
|
||||
|
||||
class QGenericRunnable : public QRunnable
|
||||
{
|
||||
// Type erasure, to only instantiate a non-virtual class per Callable:
|
||||
class QGenericRunnableHelperBase
|
||||
{
|
||||
|
|
@ -77,12 +82,6 @@ protected:
|
|||
}
|
||||
};
|
||||
|
||||
private:
|
||||
static Q_DECL_COLD_FUNCTION QRunnable *warnNullCallable();
|
||||
};
|
||||
|
||||
class QGenericRunnable : public QRunnable
|
||||
{
|
||||
QGenericRunnableHelperBase *runHelper;
|
||||
public:
|
||||
template <typename Callable, if_callable<Callable> = true>
|
||||
|
|
|
|||
Loading…
Reference in New Issue