diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-19 18:12:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-19 18:12:43 +0000 |
commit | 066e5ca3665835e50dddaaf612212ffb94c68a85 (patch) | |
tree | b9cc645618c28840efd999c715a280c1d8a4496f /include | |
parent | c212eb49dfd808aae0a146cb978de2c5e9eb2490 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/xline.h | 30 |
1 files changed, 15 insertions, 15 deletions
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<KLine> klines; + std::vector<KLine*> klines; /** Temporary Glines */ - std::vector<GLine> glines; + std::vector<GLine*> glines; /** Temporary Zlines */ - std::vector<ZLine> zlines; + std::vector<ZLine*> zlines; /** Temporary QLines */ - std::vector<QLine> qlines; + std::vector<QLine*> qlines; /** Temporary ELines */ - std::vector<ELine> elines; + std::vector<ELine*> elines; /* Seperate lists for perm XLines that isnt checked by expiry functions */ /** Permenant KLines */ - std::vector<KLine> pklines; + std::vector<KLine*> pklines; /** Permenant GLines */ - std::vector<GLine> pglines; + std::vector<GLine*> pglines; /** Permenant ZLines */ - std::vector<ZLine> pzlines; + std::vector<ZLine*> pzlines; /** Permenant QLines */ - std::vector<QLine> pqlines; + std::vector<QLine*> pqlines; /** Permenant ELines */ - std::vector<ELine> pelines; + std::vector<ELine*> pelines; /** Constructor * @param Instance A pointer to the creator object |