Skip to content
Snippets Groups Projects
Commit 16ae42ad authored by Lars Bilke's avatar Lars Bilke Committed by Lars Bilke
Browse files

[GL] Fixed variable initialized with null instead of map.

This crashed the convertGEO utility. Thanks to JM for reporting!
This bug was introduced with a6ff2c7a.
parent 58bac699
No related branches found
No related tags found
No related merge requests found
...@@ -452,7 +452,8 @@ bool readGLIFileV4(const std::string& fname, ...@@ -452,7 +452,8 @@ bool readGLIFileV4(const std::string& fname,
// read names of points into vector of strings // read names of points into vector of strings
auto pnt_id_names_map = auto pnt_id_names_map =
std::unique_ptr<std::map<std::string, std::size_t>>{}; std::unique_ptr<std::map<std::string, std::size_t>>
{ new std::map<std::string, std::size_t> };
bool zero_based_idx(true); bool zero_based_idx(true);
auto pnt_vec = std::make_unique<std::vector<GeoLib::Point*>>(); auto pnt_vec = std::make_unique<std::vector<GeoLib::Point*>>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment