summaryrefslogtreecommitdiff
path: root/examples/thread/threadpool.cc
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2013-07-04 10:27:35 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-06-30 10:15:28 +0200
commite3cf2a503132aaaddd69f2a149d3e60344b9df0a (patch)
treed746410b7e1aa54d4a768ca03057113454b2c0cd /examples/thread/threadpool.cc
parentb6aa4974db0d42c1070c9e2600d5198c26cec522 (diff)
downloadglibmm-c++11v3.tar.gz
C++11: examples: more use of auto.c++11v3
Diffstat (limited to 'examples/thread/threadpool.cc')
-rw-r--r--examples/thread/threadpool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/thread/threadpool.cc b/examples/thread/threadpool.cc
index 632a77af..557997f4 100644
--- a/examples/thread/threadpool.cc
+++ b/examples/thread/threadpool.cc
@@ -15,7 +15,7 @@ void print_char(char c)
{
Glib::Rand rand;
- for(int i = 0; i < 100; ++i)
+ for(auto i = 0; i < 100; ++i)
{
{
Glib::Threads::Mutex::Lock lock (mutex);
@@ -33,7 +33,7 @@ int main(int, char**)
{
Glib::ThreadPool pool (10);
- for(char c = 'a'; c <= 'z'; ++c)
+ for(auto c = 'a'; c <= 'z'; ++c)
{
pool.push(sigc::bind<1>(sigc::ptr_fun(&print_char), c));
}