diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-01-06 13:23:37 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-01-06 13:23:37 +0000 |
| commit | a9ab0c72a69cacc597e91870f50622de0334f9a7 (patch) | |
| tree | 57665546eb565fa608a203aca5f4ac65dc57a6f3 /modules/commands/ns_register.cpp | |
| parent | de918ef9cfb652b20b215d0d2f6622eb9a117b2c (diff) | |
Use auto in places where the type is unambiguous.
Diffstat (limited to 'modules/commands/ns_register.cpp')
| -rw-r--r-- | modules/commands/ns_register.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 18a965999..7fdca9d03 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -211,8 +211,8 @@ public: source.Reply(MAIL_X_INVALID, email.c_str()); else { - NickCore *nc = new NickCore(u_nick); - NickAlias *na = new NickAlias(u_nick, nc); + auto *nc = new NickCore(u_nick); + auto *na = new NickAlias(u_nick, nc); Anope::Encrypt(pass, nc->pass); if (!email.empty()) nc->email = email; |
