diff options
| author | 2012-09-30 01:26:06 +0200 | |
|---|---|---|
| committer | 2012-09-30 03:04:08 +0200 | |
| commit | 6abc0b8ca76a3a910d11264fc4dcc8b689574cad (patch) | |
| tree | c2e861342c4f6c4a6ac5958e3830cb7873813b30 /src/configreader.cpp | |
| parent | Fix more undefined behavior caused by referencing the returned buffer by std:... (diff) | |
Make ConfigReader::GetSID() return a const reference to a string instead of a string
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
