summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-04 12:28:55 +0000
committerSadie Powell <sadie@witchery.services>2022-01-04 12:28:55 +0000
commit106750db77be01c7b2d277a12d9b80de15cb8fbb (patch)
tree87df7f8b5966ca704f20ee7ab6a79b45ed2e95a2 /src/config.cpp
parent7d1047490e4380c4f02900b711c66055d29fb387 (diff)
Replace all uses of push_back with emplace_back.
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.cpp b/src/config.cpp
index f323ae6c7..502cb3bac 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -199,7 +199,7 @@ Conf::Conf() : Block(""), EmptyBlock("")
if (password.find(' ') != Anope::string::npos || password[0] == ':')
throw ConfigException("uplink:password is not valid");
- this->Uplinks.push_back(Uplink(host, port, password, ipv6));
+ this->Uplinks.emplace_back(host, port, password, ipv6);
}
for (int i = 0; i < this->CountBlock("module"); ++i)