[Tile-serving] [openstreetmap/osm2pgsql] Use default member initialization in some classes. (#971)

Jochen Topf notifications at github.com
Fri Nov 15 14:48:21 UTC 2019


joto commented on this pull request.



>      std::shared_ptr<reprojection> projection; ///< SRS of projection
-    bool append; ///< Append to existing data
-    bool slim; ///< In slim mode
-    int cache; ///< Memory usable for cache in MB
-    boost::optional<std::string> tblsmain_index; ///< Pg Tablespace to store indexes on main tables (no default TABLESPACE)
-    boost::optional<std::string> tblsslim_index; ///< Pg Tablespace to store indexes on slim tables (no default TABLESPACE)
-    boost::optional<std::string> tblsmain_data; ///< Pg Tablespace to store main tables (no default TABLESPACE)
-    boost::optional<std::string> tblsslim_data; ///< Pg Tablespace to store slim tables (no default TABLESPACE)
-    std::string style; ///< style file to use
+    bool append = false; ///< Append to existing data
+    bool slim = false; ///< In slim mode
+    int cache = 800; ///< Memory usable for cache in MB
+    boost::optional<std::string> tblsmain_index{boost::none}; ///< Pg Tablespace to store indexes on main tables (no default TABLESPACE)
+    boost::optional<std::string> tblsslim_index{boost::none}; ///< Pg Tablespace to store indexes on slim tables (no default TABLESPACE)
+    boost::optional<std::string> tblsmain_data{boost::none}; ///< Pg Tablespace to store main tables (no default TABLESPACE)
+    boost::optional<std::string> tblsslim_data{boost::none}; ///< Pg Tablespace to store slim tables (no default TABLESPACE)

Fixed.

-- 
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_r346857681
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20191115/2c6f6f1a/attachment.html>


More information about the Tile-serving mailing list