summaryrefslogtreecommitdiff
path: root/examples/keyfile/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/keyfile/main.cc')
-rw-r--r--examples/keyfile/main.cc6
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)
{