mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Misc: Fixed warnings found by GCC 6
(cherry picked from commit 67fd3ee726)
# Conflicts:
# src/server/game/Spells/Auras/SpellAuras.cpp
This commit is contained in:
@@ -120,7 +120,7 @@ class DatabaseWorkerPool
|
||||
//! This method should only be used for queries that are only executed once, e.g during startup.
|
||||
void DirectExecute(const char* sql)
|
||||
{
|
||||
if (!sql)
|
||||
if (Trinity::IsFormatEmptyOrNull(sql))
|
||||
return;
|
||||
|
||||
T* connection = GetFreeConnection();
|
||||
@@ -175,7 +175,7 @@ class DatabaseWorkerPool
|
||||
template<typename Format, typename... Args>
|
||||
QueryResult PQuery(Format&& sql, Args&&... args)
|
||||
{
|
||||
if (!sql)
|
||||
if (Trinity::IsFormatEmptyOrNull(sql))
|
||||
return QueryResult(nullptr);
|
||||
|
||||
return Query(Trinity::StringFormat(std::forward<Format>(sql), std::forward<Args>(args)...).c_str());
|
||||
|
||||
@@ -4686,7 +4686,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
||||
case 71563:
|
||||
if (Aura* newAura = target->AddAura(71564, target))
|
||||
newAura->SetStackAmount(newAura->GetSpellInfo()->StackAmount);
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// AT REMOVE
|
||||
|
||||
Reference in New Issue
Block a user