server.cpp: code modernization
authorLoic Blot <loic.blot@unix-experience.fr>
Tue, 15 Aug 2017 07:30:31 +0000 (09:30 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Tue, 15 Aug 2017 07:30:31 +0000 (09:30 +0200)
commit342e9336ae145887f1c366b0863304b9db748cb8
tree8b40f678544c32f5f7926da13b50bc6a8fea8ef5
parent618e0dd417d6f2ee43e8f3adcb408f63b1ffb805
server.cpp: code modernization

* Use more for range based loops
* Simplify some tests
* Code style fixes
* connection.h: better PeerChange constructor instead of creating uninitalized object and then affect variables
src/network/connection.h
src/server.cpp