diff options
author | Adam <Adam@anope.org> | 2010-06-20 20:05:23 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-20 20:05:23 -0400 |
commit | 0d2d7e996835c8c77c1eee5a4c90c3e2a60be4ff (patch) | |
tree | 9003a8547087e1532d2a610f41867c3d84afea6a /src/operserv.cpp | |
parent | 63d7bee2a65c6d389219e5bc09d0fdf4f357b9a1 (diff) |
Fixed Windows build
Diffstat (limited to 'src/operserv.cpp')
-rw-r--r-- | src/operserv.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/operserv.cpp b/src/operserv.cpp index 1dda039e4..c5e251d1a 100644 --- a/src/operserv.cpp +++ b/src/operserv.cpp @@ -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) { |