mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-01 17:34:55 +01:00
replace stoi with StringTo<int>
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user