From 066e5ca3665835e50dddaaf612212ffb94c68a85 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 19 Sep 2006 18:12:43 +0000 Subject: Fix crashes, and in the process make xline even faster! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5304 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/xline.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'include/xline.h') diff --git a/include/xline.h b/include/xline.h index bec693da6..8c18ab37e 100644 --- a/include/xline.h +++ b/include/xline.h @@ -204,57 +204,57 @@ class XLineManager /** This functor is used by the std::sort() function to keep glines in order */ - static bool GSortComparison ( const GLine one, const GLine two ); + static bool GSortComparison ( const GLine* one, const GLine* two ); /** This functor is used by the std::sort() function to keep elines in order */ - static bool ESortComparison ( const ELine one, const ELine two ); + static bool ESortComparison ( const ELine* one, const ELine* two ); /** This functor is used by the std::sort() function to keep zlines in order */ - static bool ZSortComparison ( const ZLine one, const ZLine two ); + static bool ZSortComparison ( const ZLine* one, const ZLine* two ); /** This functor is used by the std::sort() function to keep klines in order */ - static bool KSortComparison ( const KLine one, const KLine two ); + static bool KSortComparison ( const KLine* one, const KLine* two ); /** This functor is used by the std::sort() function to keep qlines in order */ - static bool QSortComparison ( const QLine one, const QLine two ); + static bool QSortComparison ( const QLine* one, const QLine* two ); public: /* Lists for temporary lines with an expiry time */ /** Temporary KLines */ - std::vector klines; + std::vector klines; /** Temporary Glines */ - std::vector glines; + std::vector glines; /** Temporary Zlines */ - std::vector zlines; + std::vector zlines; /** Temporary QLines */ - std::vector qlines; + std::vector qlines; /** Temporary ELines */ - std::vector elines; + std::vector elines; /* Seperate lists for perm XLines that isnt checked by expiry functions */ /** Permenant KLines */ - std::vector pklines; + std::vector pklines; /** Permenant GLines */ - std::vector pglines; + std::vector pglines; /** Permenant ZLines */ - std::vector pzlines; + std::vector pzlines; /** Permenant QLines */ - std::vector pqlines; + std::vector pqlines; /** Permenant ELines */ - std::vector pelines; + std::vector pelines; /** Constructor * @param Instance A pointer to the creator object -- cgit v1.2.3