make format

pull/236/head
Jeff Becker 5 years ago
parent 015e68df68
commit 41e8691702
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -343,8 +343,8 @@ namespace tl
using enable_assign_forward = detail::enable_if_t<
!std::is_same< optional< T >, detail::decay_t< U > >::value
&& !detail::conjunction<
std::is_scalar< T >,
std::is_same< T, detail::decay_t< U > > >::value
std::is_scalar< T >,
std::is_same< T, detail::decay_t< U > > >::value
&& std::is_constructible< T, U >::value
&& std::is_assignable< T &, U >::value >;
@ -465,7 +465,7 @@ namespace tl
0))::value &&detail::swap_adl_tests::
is_std_swap_noexcept< T >::value)
|| (!decltype(detail::swap_adl_tests::uses_std< T, U >(
0))::value &&detail::swap_adl_tests::
0))::value &&detail::swap_adl_tests::
is_adl_swap_noexcept< T, U >::value)) >
{
};

@ -4,12 +4,12 @@
//
// Next default values for new objects
//
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

@ -100,9 +100,9 @@ namespace llarp
lock_t lock(m_ProfilesMutex);
size_t sz = (m_Profiles.size() * (RouterProfile::MaxSize + 32 + 8)) + 8;
std::vector<byte_t> tmp(sz, 0);
auto buf = llarp::Buffer(tmp);
auto res = BEncode(&buf);
std::vector< byte_t > tmp(sz, 0);
auto buf = llarp::Buffer(tmp);
auto res = BEncode(&buf);
if(res)
{
buf.sz = buf.cur - buf.base;

@ -103,7 +103,6 @@ struct TryConnectJob
}
};
static void
on_try_connecting(void *u)
{
@ -163,10 +162,9 @@ namespace llarp
{
if(!link->IsCompatable(remote))
continue;
std::unique_ptr<TryConnectJob> j = std::make_unique< TryConnectJob >(remote, link.get(), numretries, this);
auto itr = pendingEstablishJobs.emplace(
remote.pubkey,
std::move(j));
std::unique_ptr< TryConnectJob > j = std::make_unique< TryConnectJob >(
remote, link.get(), numretries, this);
auto itr = pendingEstablishJobs.emplace(remote.pubkey, std::move(j));
if(itr.second)
{
// only try establishing if we inserted a new element

@ -17,7 +17,6 @@ namespace llarp
// handles messages on the routing level
struct IMessageHandler
{
virtual bool
HandleObtainExitMessage(const ObtainExitMessage *msg,
llarp::Router *r) = 0;

@ -49,9 +49,9 @@ namespace llarp
CloseExitMessage C;
};
IMessage * msg = nullptr;
IMessage* msg = nullptr;
MessageHolder m_Holder;
};
}
}
} // namespace routing
} // namespace llarp
#endif

@ -55,5 +55,5 @@ namespace llarp
latency = 0;
expiresAt = 0;
}
}
}
} // namespace service
} // namespace llarp

Loading…
Cancel
Save