summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-28 00:19:19 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-28 00:19:19 -0400
commit4700c9626861b193798b3cf3d53fb89a913c5819 (patch)
tree94a026d3d8683170afd06b26be36ddf82d45bb6e /modules
parent66c0e280ee9d4940fe5a477d3e933ba4221e35db (diff)
Yet more annoying code cleanup, plus made Server's Links list into a normal variable and not a pointer.
Diffstat (limited to 'modules')
-rw-r--r--modules/core/os_stats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/os_stats.cpp b/modules/core/os_stats.cpp
index 08a27e31d..f554092e7 100644
--- a/modules/core/os_stats.cpp
+++ b/modules/core/os_stats.cpp
@@ -27,8 +27,8 @@ static int stats_count_servers(Server *s)
int count = 1;
- if (s->GetLinks())
- for (std::list<Server *>::const_iterator it = s->GetLinks()->begin(), it_end = s->GetLinks()->end(); it != it_end; ++it)
+ if (!s->GetLinks().empty())
+ for (std::list<Server *>::const_iterator it = s->GetLinks().begin(), it_end = s->GetLinks().end(); it != it_end; ++it)
count += stats_count_servers(*it);
return count;