Clean editmap.cpp a little.