Server::AsyncRunStep + Server::sendAddNode: modernize code
authorLoic Blot <loic.blot@unix-experience.fr>
Sun, 13 Aug 2017 22:44:45 +0000 (00:44 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Sun, 13 Aug 2017 22:44:45 +0000 (00:44 +0200)
commit5d06ecb36668eeccc152da19cd19bdebcc30f92c
treec56cbb0f13058bf873d7043f658924b05873c0f2
parent725a0f56db007d46000e6cd18e31824e5b60ee73
Server::AsyncRunStep + Server::sendAddNode: modernize code

* Use various modern for loops
* Make some loop iterator constants, whereas there weren't
* Use empty on some size() > 0 tests
* Various little codestyle fixes
* Fix an hidden scope variable in Server::SendBlockNoLock
src/server.cpp