diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-28 00:19:19 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-28 00:19:19 -0400 |
| commit | 4700c9626861b193798b3cf3d53fb89a913c5819 (patch) | |
| tree | 94a026d3d8683170afd06b26be36ddf82d45bb6e /include | |
| parent | 66c0e280ee9d4940fe5a477d3e933ba4221e35db (diff) | |
Yet more annoying code cleanup, plus made Server's Links list into a normal variable and not a pointer.
Diffstat (limited to 'include')
| -rw-r--r-- | include/servers.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<ServerFlag> /* Server ID */ Anope::string SID; /* Links for this server */ - std::list<Server *> *Links; + std::list<Server *> Links; /* Uplink for this server */ Server *UplinkServer; @@ -101,7 +101,7 @@ class CoreExport Server : public Flags<ServerFlag> * @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<ServerFlag> /** Get the list of links this server has, or NULL if it has none * @return A list of servers */ - const std::list<Server *> *GetLinks() const; + const std::list<Server *> &GetLinks() const; /** Get the uplink server for this server, if this is our uplink will be Me * @return The servers uplink |
