avsmal/Syrop — Issue #4: Code review question: utils.cpp::getProxySettings(...)
Author: krinkinmu
Created: 2012-03-01 21:49:55+00:00
State: open

Operator [] in this case is bad idea, at least it should be checekd that map contains key, and if there is not, default value sould be returned. See http://www.cplusplus.com/reference/stl/map/operator[]/ , operator[] insert element in a map, if map dosen't contain it.