aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_bcrypt.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-01-25 02:52:11 +0000
committerGravatar Sadie Powell2019-01-25 02:52:11 +0000
commitc78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8 (patch)
tree4d7b4e6135e4b8340698419a83bc29edec18a5ea /src/modules/m_bcrypt.cpp
parentRemove the DEPRECATED_METHOD macro. (diff)
Replace the override macro with the override keyword.
Diffstat (limited to 'src/modules/m_bcrypt.cpp')
-rw-r--r--src/modules/m_bcrypt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_bcrypt.cpp b/src/modules/m_bcrypt.cpp
index 59ee1556c..ec225de38 100644
--- a/src/modules/m_bcrypt.cpp
+++ b/src/modules/m_bcrypt.cpp
@@ -50,12 +50,12 @@ class BCryptProvider : public HashProvider
return hash;
}
- std::string GenerateRaw(const std::string& data) CXX11_OVERRIDE
+ std::string GenerateRaw(const std::string& data) override
{
return Generate(data, Salt());
}
- bool Compare(const std::string& input, const std::string& hash) CXX11_OVERRIDE
+ bool Compare(const std::string& input, const std::string& hash) override
{
std::string ret = Generate(input, hash);
if (ret.empty())
@@ -66,7 +66,7 @@ class BCryptProvider : public HashProvider
return false;
}
- std::string ToPrintable(const std::string& raw) CXX11_OVERRIDE
+ std::string ToPrintable(const std::string& raw) override
{
return raw;
}
@@ -87,13 +87,13 @@ class ModuleBCrypt : public Module
{
}
- void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
+ void ReadConfig(ConfigStatus& status) override
{
ConfigTag* conf = ServerInstance->Config->ConfValue("bcrypt");
bcrypt.rounds = conf->getUInt("rounds", 10, 1);
}
- Version GetVersion() CXX11_OVERRIDE
+ Version GetVersion() override
{
return Version("Implements bcrypt hashing", VF_VENDOR);
}