Cleanup of some QueryDatabase references that no longer need auto results

This commit is contained in:
Akkadius
2015-01-19 05:32:34 -06:00
parent e4200abc4f
commit f20ff5c6e3
5 changed files with 3 additions and 24 deletions
-4
View File
@@ -231,14 +231,10 @@ bool BaseGuildManager::_StoreGuildDB(uint32 guild_id) {
//clear out old `guilds` entry
auto results = m_db->QueryDatabase(query);
if (!results.Success())
//clear out old `guild_ranks` entries
query = StringFormat("DELETE FROM guild_ranks WHERE guild_id=%lu", (unsigned long)guild_id);
results = m_db->QueryDatabase(query);
if (!results.Success())
//escape our strings.
char *name_esc = new char[info->name.length()*2+1];
char *motd_esc = new char[info->motd.length()*2+1];