From 6abc0b8ca76a3a910d11264fc4dcc8b689574cad Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 30 Sep 2012 01:26:06 +0200 Subject: Make ConfigReader::GetSID() return a const reference to a string instead of a string --- include/configreader.h | 2 +- src/configreader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configreader.h b/include/configreader.h index 910b6cabf..da530b6d9 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -545,7 +545,7 @@ class CoreExport ServerConfig /** Get server ID as string with required leading zeroes */ - std::string GetSID(); + const std::string& GetSID(); /** Update the 005 vector */ diff --git a/src/configreader.cpp b/src/configreader.cpp index b5db19fa1..382bcaffb 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -950,7 +950,7 @@ const char* ServerConfig::CleanFilename(const char* name) return (p != name ? ++p : p); } -std::string ServerConfig::GetSID() +const std::string& ServerConfig::GetSID() { return sid; } -- cgit v1.2.3