Skip to content

Commit 57073c1

Browse files
committed
clang-tidy cleanup: remove redundant member inits
1 parent 2d61139 commit 57073c1

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

src/input.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ class data_source_t
122122
using iterator = osmium::memory::Buffer::t_iterator<osmium::OSMObject>;
123123

124124
std::unique_ptr<osmium::io::Reader> m_reader;
125-
osmium::memory::Buffer m_buffer{};
126-
iterator m_it{};
127-
iterator m_end{};
125+
osmium::memory::Buffer m_buffer;
126+
iterator m_it;
127+
iterator m_end;
128128
type_id m_last = {osmium::item_type::node, 0};
129129

130130
}; // class data_source_t

src/input.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ struct type_id
3535

3636
struct file_info
3737
{
38-
osmium::io::Header header{};
39-
osmium::Timestamp last_timestamp{};
38+
osmium::io::Header header;
39+
osmium::Timestamp last_timestamp;
4040
};
4141

4242
/**

src/options.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,30 @@ struct options_t
5353
bool prefix_is_set = false;
5454

5555
/// Pg Tablespace to store indexes on main tables (no default TABLESPACE)
56-
std::string tblsmain_index{};
56+
std::string tblsmain_index;
5757

5858
/// Pg Tablespace to store indexes on slim tables (no default TABLESPACE)
59-
std::string tblsslim_index{};
59+
std::string tblsslim_index;
6060

6161
/// Pg Tablespace to store main tables (no default TABLESPACE)
62-
std::string tblsmain_data{};
62+
std::string tblsmain_data;
6363

6464
/// Pg Tablespace to store slim tables (no default TABLESPACE)
65-
std::string tblsslim_data{};
65+
std::string tblsslim_data;
6666

6767
/// Default Pg schema.
6868
std::string dbschema{"public"};
6969

7070
/// Pg schema to store middle tables in.
71-
std::string middle_dbschema{};
71+
std::string middle_dbschema;
7272

7373
/// Pg schema to store output tables in.
74-
std::string output_dbschema{};
74+
std::string output_dbschema;
7575

76-
std::string style{}; ///< style file to use
76+
std::string style; ///< style file to use
7777

7878
/// Name of the flat node file used. Empty if flat node file is not enabled.
79-
std::string flat_node_file{};
79+
std::string flat_node_file;
8080

8181
std::string tag_transform_script;
8282

src/output-flex.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,19 +298,19 @@ class output_flex_t : public output_t
298298

299299
osmium::memory::Buffer m_area_buffer;
300300

301-
prepared_lua_function_t m_process_node{};
302-
prepared_lua_function_t m_process_way{};
303-
prepared_lua_function_t m_process_relation{};
301+
prepared_lua_function_t m_process_node;
302+
prepared_lua_function_t m_process_way;
303+
prepared_lua_function_t m_process_relation;
304304

305-
prepared_lua_function_t m_process_untagged_node{};
306-
prepared_lua_function_t m_process_untagged_way{};
307-
prepared_lua_function_t m_process_untagged_relation{};
305+
prepared_lua_function_t m_process_untagged_node;
306+
prepared_lua_function_t m_process_untagged_way;
307+
prepared_lua_function_t m_process_untagged_relation;
308308

309-
prepared_lua_function_t m_select_relation_members{};
309+
prepared_lua_function_t m_select_relation_members;
310310

311-
prepared_lua_function_t m_after_nodes{};
312-
prepared_lua_function_t m_after_ways{};
313-
prepared_lua_function_t m_after_relations{};
311+
prepared_lua_function_t m_after_nodes;
312+
prepared_lua_function_t m_after_ways;
313+
prepared_lua_function_t m_after_relations;
314314

315315
calling_context m_calling_context = calling_context::main;
316316

src/thread-pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class task_result_t
6060
std::chrono::microseconds runtime() const noexcept { return m_result; }
6161

6262
private:
63-
std::future<std::chrono::microseconds> m_future{};
63+
std::future<std::chrono::microseconds> m_future;
6464
std::chrono::microseconds m_result{};
6565
}; // class task_result_t
6666

0 commit comments

Comments
 (0)