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/protocol | |
| parent | de918ef9cfb652b20b215d0d2f6622eb9a117b2c (diff) | |
Use auto in places where the type is unambiguous.
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/hybrid.cpp | 2 | ||||
| -rw-r--r-- | modules/protocol/unrealircd.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp index c02d19b67..44d39b5e9 100644 --- a/modules/protocol/hybrid.cpp +++ b/modules/protocol/hybrid.cpp @@ -150,7 +150,7 @@ public: return; /* We can't akill x as it has a nick and/or realname included, so create a new akill for *@host */ - XLine *xline = new XLine("*@" + u->host, old->by, old->expires, old->reason, old->id); + auto *xline = new XLine("*@" + u->host, old->by, old->expires, old->reason, old->id); old->manager->AddXLine(xline); x = xline; diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp index dcc105733..f506662fb 100644 --- a/modules/protocol/unrealircd.cpp +++ b/modules/protocol/unrealircd.cpp @@ -106,7 +106,7 @@ private: return; /* We can't akill x as it has a nick and/or realname included, so create a new akill for *@host */ - XLine *xline = new XLine("*@" + u->host, old->by, old->expires, old->reason, old->id); + auto *xline = new XLine("*@" + u->host, old->by, old->expires, old->reason, old->id); old->manager->AddXLine(xline); x = xline; |
