mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Ref T730, added deleteResourceFromNetwork and modified CSlot (directly accept object witb std::function)
This commit is contained in:
committed by
Mat Sutcliffe
parent
6e9fa0b2ad
commit
ff6b7f8deb
@@ -86,6 +86,13 @@ namespace BlackMisc
|
||||
m_function(function)
|
||||
{}
|
||||
|
||||
//! Construct a slot from the given object passing a function and a object
|
||||
template <typename T>
|
||||
CSlot(T *object, std::function<R(Args...)> function) :
|
||||
m_object(object),
|
||||
m_function(function)
|
||||
{}
|
||||
|
||||
//! Call the slot. The behaviour is undefined if the slot is empty.
|
||||
R operator()(Args... args) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user