diff options
author | Murray Cumming <murrayc@murrayc.com> | 2015-09-01 12:30:30 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2015-09-01 12:30:30 +0200 |
commit | 93443cdec25048e5e0d2bb8a2c1888ffb96b9c7d (patch) | |
tree | ec4a5ba6dedac004e5b399df1589b05940609808 | |
parent | db071c425d89bb1eca205546ef5cdae6d6dc3a1f (diff) | |
download | glibmm-93443cdec25048e5e0d2bb8a2c1888ffb96b9c7d.tar.gz |
resolver example: Use std:stoul instead of stdstrtoul
-rw-r--r-- | examples/network/resolver.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/resolver.cc b/examples/network/resolver.cc index c8506f22..a3c431af 100644 --- a/examples/network/resolver.cc +++ b/examples/network/resolver.cc @@ -401,7 +401,7 @@ do_connectable (const std::string& arg, gboolean synchronous) { host = arg.substr (0, pos); port_str = arg.substr(pos); - port = std::strtoul (port_str.c_str (), nullptr, 10); + port = std::stoul (port_str); } else port = 0; |