Core/Signal: Add Connectionguard::GetConnection()

Former-commit-id: 78d0f6e72f15933fb4356d304a5a48ea3c163fbe
This commit is contained in:
Lynix 2015-06-07 01:31:57 +02:00
parent d43126eae5
commit 0b14711cbf
2 changed files with 8 additions and 0 deletions

View File

@ -94,6 +94,8 @@ class NzSignal<Args...>::ConnectionGuard
ConnectionGuard(Connection&& connection);
~ConnectionGuard();
Connection& GetConnection();
Connection& operator=(const Connection& connection) = delete;
Connection& operator=(Connection&& connection) = delete;

View File

@ -132,4 +132,10 @@ NzSignal<Args...>::ConnectionGuard::~ConnectionGuard()
m_connection.Disconnect();
}
template<typename... Args>
typename NzSignal<Args...>::Connection& NzSignal<Args...>::ConnectionGuard::GetConnection()
{
return m_connection;
}
#include <Nazara/Core/DebugOff.hpp>