1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 08:16:39 +02:00

Fixed Windows build

This commit is contained in:
Adam
2010-06-20 20:05:23 -04:00
parent 63d7bee2a6
commit 0d2d7e9968
3 changed files with 11 additions and 4 deletions
+8 -2
View File
@@ -242,7 +242,10 @@ void XLineManager::UnregisterXLineManager(XLineManager *xlm)
*/
std::pair<XLineManager *, XLine *> XLineManager::CheckAll(User *u)
{
std::pair<XLineManager *, XLine *> ret(NULL, NULL);
std::pair<XLineManager *, XLine *> ret;
ret.first = NULL;
ret.second = NULL;
for (std::list<XLineManager *>::iterator it = XLineManagers.begin(), it_end = XLineManagers.end(); it != it_end; ++it)
{
@@ -356,7 +359,10 @@ void XLineManager::Del(XLine *x)
*/
std::pair<int, XLine *> XLineManager::CanAdd(const ci::string &mask, time_t expires)
{
std::pair<int, XLine *> ret(0, NULL);
std::pair<int, XLine *> ret;
ret.first = 0;
ret.second = NULL;
for (unsigned i = 0, end = GetCount(); i < end; ++i)
{