Skip to content

Commit

Permalink
Use {} for constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Oct 27, 2024
1 parent e5f2f39 commit cf81df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/osmium/experimental/flex_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ namespace osmium {
}

explicit FlexReader(const std::string& filename, TLocationHandler& location_handler, osmium::osm_entity_bits::type entities = osmium::osm_entity_bits::nwr) :
FlexReader(osmium::io::File(filename), location_handler, entities) {
FlexReader(osmium::io::File{filename}, location_handler, entities) {
}

explicit FlexReader(const char* filename, TLocationHandler& location_handler, osmium::osm_entity_bits::type entities = osmium::osm_entity_bits::nwr) :
FlexReader(osmium::io::File(filename), location_handler, entities) {
FlexReader(osmium::io::File{filename}, location_handler, entities) {
}

osmium::memory::Buffer read() {
Expand Down

0 comments on commit cf81df1

Please sign in to comment.