diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-09-30 02:47:10 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-09-30 03:04:08 +0200 |
commit | 97e8518c1961c3d1ff7b3a0ad4e04ee2880c1fc4 (patch) | |
tree | 5c830d8c5d80d2435a0cbfa27876dd8386a070c9 /src | |
parent | 6abc0b8ca76a3a910d11264fc4dcc8b689574cad (diff) |
m_spanningtree Return const references from several TreeServer getter functions
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treeserver.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp index 37d81663b..65e119149 100644 --- a/src/modules/m_spanningtree/treeserver.cpp +++ b/src/modules/m_spanningtree/treeserver.cpp @@ -128,7 +128,7 @@ TreeServer::TreeServer(SpanningTreeUtilities* Util, std::string Name, std::strin SetID(id); } -std::string& TreeServer::GetID() +const std::string& TreeServer::GetID() { return sid; } @@ -226,12 +226,12 @@ std::string TreeServer::GetName() return ServerName.c_str(); } -std::string TreeServer::GetDesc() +const std::string& TreeServer::GetDesc() { return ServerDesc; } -std::string TreeServer::GetVersion() +const std::string& TreeServer::GetVersion() { return VersionString; } diff --git a/src/modules/m_spanningtree/treeserver.h b/src/modules/m_spanningtree/treeserver.h index 943267cfd..60b6d1def 100644 --- a/src/modules/m_spanningtree/treeserver.h +++ b/src/modules/m_spanningtree/treeserver.h @@ -105,11 +105,11 @@ class TreeServer : public classbase /** Get server description (GECOS) */ - std::string GetDesc(); + const std::string& GetDesc(); /** Get server version string */ - std::string GetVersion(); + const std::string& GetVersion(); /** Set time we are next due to ping this server */ @@ -197,7 +197,7 @@ class TreeServer : public classbase /** Get server ID */ - std::string& GetID(); + const std::string& GetID(); /** Marks a server as having finished bursting and performs appropriate actions. */ |