From 4700c9626861b193798b3cf3d53fb89a913c5819 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Wed, 28 Jul 2010 00:19:19 -0400 Subject: Yet more annoying code cleanup, plus made Server's Links list into a normal variable and not a pointer. --- include/servers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/servers.h b/include/servers.h index 09de78547..efb6ace62 100644 --- a/include/servers.h +++ b/include/servers.h @@ -86,7 +86,7 @@ class CoreExport Server : public Flags /* Server ID */ Anope::string SID; /* Links for this server */ - std::list *Links; + std::list Links; /* Uplink for this server */ Server *UplinkServer; @@ -101,7 +101,7 @@ class CoreExport Server : public Flags * @param description Server rdescription * @param sid Server sid/numeric */ - Server(Server *uplink, const Anope::string &name, unsigned int hops, const Anope::string &description, const Anope::string &sid); + Server(Server *uplink, const Anope::string &name, unsigned hops, const Anope::string &description, const Anope::string &sid); /** Destructor */ @@ -140,7 +140,7 @@ class CoreExport Server : public Flags /** Get the list of links this server has, or NULL if it has none * @return A list of servers */ - const std::list *GetLinks() const; + const std::list &GetLinks() const; /** Get the uplink server for this server, if this is our uplink will be Me * @return The servers uplink -- cgit