Core: Coding style cleanup.

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-09-26 12:04:47 -07:00
parent bbf86641a1
commit 0722348240
4 changed files with 48 additions and 82 deletions
+2 -4
View File
@@ -44,10 +44,9 @@ uint64 TicketMgr::GenerateGMTicketId()
void TicketMgr::LoadGMTickets()
{
if (!m_GMTicketList.empty())
{
for (GmTicketList::const_iterator itr = m_GMTicketList.begin(); itr != m_GMTicketList.end(); ++itr)
delete *itr;
}
m_GMTicketList.clear();
m_GMticketid = 0;
m_openTickets = 0;
@@ -64,7 +63,7 @@ void TicketMgr::LoadGMTickets()
}
uint16 count = 0;
barGoLink bar ((*result).GetRowCount());
barGoLink bar(result->GetRowCount());
GM_Ticket *ticket;
do
{
@@ -93,7 +92,6 @@ void TicketMgr::LoadGMTickets()
bar.step();
m_GMTicketList.push_back(ticket);
} while (result->NextRow());
result = CharacterDatabase.Query("SELECT MAX(guid) from gm_tickets");
+3 -13
View File
@@ -133,10 +133,7 @@ public:
bool GetStatus() const { return status; }
void SetStatus(bool newStatus) { status = newStatus; }
uint64 GetOpenTicketCount() { return m_openTickets; }
uint64 GetNextSurveyID()
{
return ++m_GMSurveyID;
}
uint64 GetNextSurveyID() { return ++m_GMSurveyID; }
GM_Ticket *GetOldestOpenGMTicket()
{
@@ -147,15 +144,8 @@ public:
return NULL;
}
time_t GetLastChange()
{
return lastChange;
}
void UpdateLastChange()
{
lastChange = time(NULL);
}
time_t GetLastChange() { return lastChange; }
void UpdateLastChange() { lastChange = time(NULL); }
GmTicketList m_GMTicketList;