replace stoi with StringTo<int>

This commit is contained in:
Erik Frojdh
2020-03-19 12:33:13 +01:00
parent 272a8bfaf1
commit dee0aea378
4 changed files with 126 additions and 126 deletions

View File

@@ -254,7 +254,7 @@ void DetectorImpl::addSlsDetector(const std::string &hostname) {
auto res = sls::split(hostname, ':');
if (res.size() > 1) {
host = res[0];
port = std::stoi(res[1]);
port = StringTo<int>(res[1]);
}
if (host != "localhost") {