diff options
| author | 2022-09-04 11:20:16 +0100 | |
|---|---|---|
| committer | 2022-09-04 11:28:10 +0100 | |
| commit | 7076a766db6759ac698fea880616ede9545207cc (patch) | |
| tree | 24b03370daca1f5ff92a728d9e6abe135a3a2359 /src/modules/m_cban.cpp | |
| parent | Fix some warnings noticed by the readability-* clang-tidy checkers. (diff) | |
Use auto in places where it is really obvious what the type is.
Diffstat (limited to 'src/modules/m_cban.cpp')
| -rw-r--r-- | src/modules/m_cban.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 57099b257..403d7622f 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -127,8 +127,7 @@ public: return CmdResult::FAILURE; } const char *reason = (parameters.size() > 2) ? parameters[2].c_str() : "No reason supplied"; - CBan* r = new CBan(ServerInstance->Time(), duration, user->nick, reason, parameters[0]); - + auto r = new CBan(ServerInstance->Time(), duration, user->nick, reason, parameters[0]); if (ServerInstance->XLines->AddLine(r, user)) { if (!duration) |
