Skip to content

Commit

Permalink
m_spanningtree Return const references from several TreeServer getter…
Browse files Browse the repository at this point in the history
… functions
  • Loading branch information
attilamolnar committed Sep 30, 2012
1 parent 6abc0b8 commit 97e8518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/modules/m_spanningtree/treeserver.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/modules/m_spanningtree/treeserver.h
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit 97e8518

Please sign in to comment.