[Tile-serving] [openstreetmap/osm2pgsql] Use default member initialization in some classes. (#971)
Jochen Topf
notifications at github.com
Fri Nov 15 14:49:51 UTC 2019
joto commented on this pull request.
> @@ -278,30 +278,14 @@ std::string database_options_t::conninfo() const
}
options_t::options_t()
-: prefix("planet_osm"),
- projection(reprojection::create_projection(PROJ_SPHERE_MERC)), append(false),
- slim(false), cache(800), tblsmain_index(boost::none),
- tblsslim_index(boost::none), tblsmain_data(boost::none),
- tblsslim_data(boost::none), style(DEFAULT_STYLE),
- expire_tiles_zoom(0), expire_tiles_zoom_min(0),
- expire_tiles_max_bbox(20000.0), expire_tiles_filename("dirty_tiles"),
- hstore_mode(HSTORE_NONE), enable_hstore_index(false), enable_multi(false),
- hstore_columns(), keep_coastlines(false), parallel_indexing(true),
+: projection(reprojection::create_projection(PROJ_SPHERE_MERC)),
#ifdef __amd64__
alloc_chunkwise(ALLOC_SPARSE | ALLOC_DENSE),
#else
alloc_chunkwise(ALLOC_SPARSE),
#endif
Nope. There is another place in the code with the same 'ifdef' and I haven't fully understood what's going on there, so I'd rather leave this for now.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/971#discussion_r346858403
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20191115/1b7dfe64/attachment.html>
More information about the Tile-serving
mailing list