Apply 'make format'

This commit is contained in:
github action 2022-09-28 02:22:05 +00:00
parent c6bce636ee
commit 91823c41c5

View File

@ -76,22 +76,22 @@ public:
// Construct // Construct
VlCoroutineHandle(std::coroutine_handle<> coro = nullptr, const char* filename = nullptr, VlCoroutineHandle(std::coroutine_handle<> coro = nullptr, const char* filename = nullptr,
int linenum = 0) int linenum = 0)
: m_coro { : m_coro{coro}
coro
}
#ifdef VL_DEBUG #ifdef VL_DEBUG
, m_filename{filename}, m_linenum { linenum } , m_filename{filename}
, m_linenum{linenum}
#endif #endif
{} {
}
// Move the handle, leaving a nullptr // Move the handle, leaving a nullptr
VlCoroutineHandle(VlCoroutineHandle&& moved) VlCoroutineHandle(VlCoroutineHandle&& moved)
: m_coro { : m_coro{std::exchange(moved.m_coro, nullptr)}
std::exchange(moved.m_coro, nullptr)
}
#ifdef VL_DEBUG #ifdef VL_DEBUG
, m_filename{moved.m_filename}, m_linenum { moved.m_linenum } , m_filename{moved.m_filename}
, m_linenum{moved.m_linenum}
#endif #endif
{} {
}
// Destroy if the handle isn't null // Destroy if the handle isn't null
~VlCoroutineHandle() { ~VlCoroutineHandle() {
// Usually these coroutines should get resumed; we only need to clean up if we destroy a // Usually these coroutines should get resumed; we only need to clean up if we destroy a