diff options
author | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2012-09-12 16:49:22 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2012-09-12 16:49:22 +0200 |
commit | 1c2c94f611071085af02a4d5eea83a0958cd9cff (patch) | |
tree | 3be416d8c082364a31e73fc82e32f8eb57551fdd /examples/network | |
parent | e71530f74bbd4f573273f5babe1aae24b4f4bb36 (diff) | |
download | glibmm-1c2c94f611071085af02a4d5eea83a0958cd9cff.tar.gz |
Use std::size_t and std::ptrdiff_t.
* glib/glibmm/arrayhandle.h:
* glib/glibmm/containers.h:
* glib/glibmm/listhandle.h:
* glib/glibmm/slisthandle.h:
* glib/glibmm/vectorutils.h: Use std::size_t and std::ptrdiff_t instead
of ::size_t and ::ptrdiff_t. Only the std versions are required to be
declared in <cstddef>.
* examples/network/resolver.cc:
* glib/glibmm/containerhandle_shared.h:
* glib/glibmm/helperlist.h:
* glib/glibmm/main.h:
* glib/glibmm/vectorutils.cc: Use std::size_t instead of ::size_t.
* glib/src/convert.hg: Use std::size_t instead of ::size_t in a comment.
* glib/glibmm/property.cc:
* glib/glibmm/ustring.h: Use std::ptrdiff_t instead of ::ptrdiff_t.
Diffstat (limited to 'examples/network')
-rw-r--r-- | examples/network/resolver.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/network/resolver.cc b/examples/network/resolver.cc index d1ef97a3..4112c146 100644 --- a/examples/network/resolver.cc +++ b/examples/network/resolver.cc @@ -132,8 +132,8 @@ static std::vector<Glib::ustring> split_service_parts (const Glib::ustring& arg) { std::vector<Glib::ustring> parts; - size_t delim1 = 0; - size_t delim2 = 0; + std::size_t delim1 = 0; + std::size_t delim2 = 0; delim1 = arg.find ('/', 0); if (delim1 == std::string::npos) return parts; @@ -402,7 +402,7 @@ do_connectable (const std::string& arg, gboolean synchronous) std::string host, port_str; guint16 port; - size_t pos = arg.find (':'); + std::size_t pos = arg.find (':'); if (pos != std::string::npos) { host = arg.substr (0, pos); |