mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Apply style fix
This commit is contained in:
parent
5531a0087d
commit
35405dd549
155 changed files with 10968 additions and 3660 deletions
|
|
@ -50,7 +50,9 @@ SqlTransaction::~SqlTransaction()
|
|||
bool SqlTransaction::Execute(SqlConnection* conn)
|
||||
{
|
||||
if (m_queue.empty())
|
||||
{ return true; }
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
LOCK_DB_CONN(conn);
|
||||
|
||||
|
|
@ -91,7 +93,9 @@ bool SqlPreparedRequest::Execute(SqlConnection* conn)
|
|||
bool SqlQuery::Execute(SqlConnection* conn)
|
||||
{
|
||||
if (!m_callback || !m_queue)
|
||||
{ return false; }
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
LOCK_DB_CONN(conn);
|
||||
/// execute the query and store the result in the callback
|
||||
|
|
@ -116,7 +120,9 @@ void SqlResultQueue::Update()
|
|||
bool SqlQueryHolder::Execute(MaNGOS::IQueryCallback* callback, SqlDelayThread* thread, SqlResultQueue* queue)
|
||||
{
|
||||
if (!callback || !thread || !queue)
|
||||
{ return false; }
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/// delay the execution of the queries, sync them with the delay thread
|
||||
/// which will in turn resync on execution (via the queue) and call back
|
||||
|
|
@ -189,7 +195,9 @@ void SqlQueryHolder::SetResult(size_t index, QueryResult* result)
|
|||
{
|
||||
/// store the result in the holder
|
||||
if (index < m_queries.size())
|
||||
{ m_queries[index].second = result; }
|
||||
{
|
||||
m_queries[index].second = result;
|
||||
}
|
||||
}
|
||||
|
||||
SqlQueryHolder::~SqlQueryHolder()
|
||||
|
|
@ -215,7 +223,9 @@ void SqlQueryHolder::SetSize(size_t size)
|
|||
bool SqlQueryHolderEx::Execute(SqlConnection* conn)
|
||||
{
|
||||
if (!m_holder || !m_callback || !m_queue)
|
||||
{ return false; }
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
LOCK_DB_CONN(conn);
|
||||
/// we can do this, we are friends
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue