diff options
author | Marcin Kolny <marcin.kolny@gmail.com> | 2015-08-08 14:45:12 +0200 |
---|---|---|
committer | Marcin Kolny <marcin.kolny@gmail.com> | 2015-08-08 14:45:59 +0200 |
commit | 0d5f63b18f5766760cf39e82ee11482984e0a938 (patch) | |
tree | e3f74b9b37e7618c92840024077dff43e6d08f0d /examples/keyfile/main.cc | |
parent | dce7a844e48a582e42eb2b60eef5c1f2527540ac (diff) | |
parent | d94115843f38967b5e883f5f7d8057882ae364cb (diff) | |
download | glibmm-gir-gmmproc.tar.gz |
Merge branch 'master' into glibmm-gir-gmmprocglibmm-gir-gmmproc
Diffstat (limited to 'examples/keyfile/main.cc')
-rw-r--r-- | examples/keyfile/main.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/keyfile/main.cc b/examples/keyfile/main.cc index 533bc532..33e90677 100644 --- a/examples/keyfile/main.cc +++ b/examples/keyfile/main.cc @@ -66,10 +66,10 @@ int main(int, char**) // An exception will be thrown if the value is not in the file: try { - const std::vector<int> values = keyfile.get_integer_list("Another Group", "Numbers"); + const auto values = keyfile.get_integer_list("Another Group", "Numbers"); - for(std::vector<int>::const_iterator p = values.begin(); p != values.end(); ++p) - std::cout << "Number list value: item=" << *p << std::endl; + for(const auto& p : values) + std::cout << "Number list value: item=" << p << std::endl; } catch(const Glib::KeyFileError& ex) { |