From 4766b4c07bd378569b65271db6a70be375494c2f Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 20 Aug 2020 14:48:59 +0200 Subject: [PATCH] some formatting only, (cant we agree on softwrapping please, line width on my MBP 13" is around 2000) --- Adapter.hh | 12 ++++++------ Adapter.hxx | 9 +++++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Adapter.hh b/Adapter.hh index 31eca44..d136f25 100644 --- a/Adapter.hh +++ b/Adapter.hh @@ -30,12 +30,12 @@ namespace pEp { template void startup( - messageToSend_t messageToSend, - notifyHandshake_t notifyHandshake, - T *obj = nullptr, - std::function< void (T *) > _startup = nullptr, - std::function< void (T *) > _shutdown = nullptr - ); + messageToSend_t messageToSend, + notifyHandshake_t notifyHandshake, + T *obj = nullptr, + std::function< void (T *) > _startup = nullptr, + std::function< void (T *) > _shutdown = nullptr + ); // returns 'true' when called from the "sync" thread, 'false' otherwise. bool on_sync_thread(); diff --git a/Adapter.hxx b/Adapter.hxx index f8ab868..32af595 100644 --- a/Adapter.hxx +++ b/Adapter.hxx @@ -24,7 +24,8 @@ namespace pEp { static std::exception_ptr _ex; static bool register_done = false; - template< class T > void sync_thread(T *obj, function< void(T *) > _startup, function< void(T *) > _shutdown) + template< class T > + void sync_thread(T *obj, function< void(T *) > _startup, function< void(T *) > _shutdown) { _ex = nullptr; assert(_messageToSend); @@ -59,13 +60,13 @@ namespace pEp { _shutdown(obj); } - template< class T > void startup( + template< class T > + void startup( messageToSend_t messageToSend, notifyHandshake_t notifyHandshake, T *obj, function< void(T *) > _startup, - function< void(T *) > _shutdown - ) + function< void(T *) > _shutdown) { if (messageToSend) _messageToSend = messageToSend;