diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-16 00:10:02 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-10-16 00:15:12 +0100 |
commit | 5b5e898703c09cdf732858432be4a41b54770802 (patch) | |
tree | 1b03bc3fb3aea198bb92350a043e6d6e1ea40b51 | |
parent | c65b5b4a1e2c88bde155fba9808315b3db291485 (diff) |
Un-constify the private fields of WebIRCHost.
These being constant causes problems on older compilers that don't
elide the temporary copy when adding to the host list.
-rw-r--r-- | src/modules/m_cgiirc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index e5997cd4e..8abf7eb94 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -44,10 +44,10 @@ static void ChangeIP(User* user, const std::string& newip) class WebIRCHost { private: - const std::string hostmask; - const std::string fingerprint; - const std::string password; - const std::string passhash; + std::string hostmask; + std::string fingerprint; + std::string password; + std::string passhash; public: WebIRCHost(const std::string& mask, const std::string& fp, const std::string& pass, const std::string& hash) |