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 /src/config.cpp | |
parent | de918ef9cfb652b20b215d0d2f6622eb9a117b2c (diff) |
Use auto in places where the type is unambiguous.
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.cpp b/src/config.cpp index df0338de1..c3e27d469 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -261,7 +261,7 @@ Conf::Conf() : Block("") ValidateNotEmpty("opertype", "name", oname); - OperType *ot = new OperType(oname); + auto *ot = new OperType(oname); ot->modes = modes; spacesepstream cmdstr(commands); @@ -316,7 +316,7 @@ Conf::Conf() : Block("") if (ot == NULL) throw ConfigException("Oper block for " + nname + " has invalid oper type " + type); - Oper *o = new Oper(nname, ot); + auto *o = new Oper(nname, ot); o->require_oper = require_oper; o->password = password; o->certfp = certfp; |