|
23 | 23 | #include "taginfo.hpp" |
24 | 24 | #include "util.hpp" |
25 | 25 |
|
26 | | -table_t::table_t(std::string const &name, std::string const &type, |
27 | | - columns_t const &columns, hstores_t const &hstore_columns, |
28 | | - int const srid, bool const append, hstore_column hstore_mode, |
| 26 | +table_t::table_t(std::string const &name, std::string type, columns_t columns, |
| 27 | + hstores_t hstore_columns, int const srid, bool const append, |
| 28 | + hstore_column hstore_mode, |
29 | 29 | std::shared_ptr<db_copy_thread_t> const ©_thread, |
30 | 30 | std::string const &schema) |
31 | 31 | : m_target(std::make_shared<db_target_descr_t>(name.c_str(), "osm_id")), |
32 | | - m_type(type), m_srid(fmt::to_string(srid)), m_append(append), |
33 | | - m_hstore_mode(hstore_mode), m_columns(columns), |
34 | | - m_hstore_columns(hstore_columns), m_copy(copy_thread) |
| 32 | + m_type(std::move(type)), m_srid(fmt::to_string(srid)), m_append(append), |
| 33 | + m_hstore_mode(hstore_mode), m_columns(std::move(columns)), |
| 34 | + m_hstore_columns(std::move(hstore_columns)), m_copy(copy_thread) |
35 | 35 | { |
36 | 36 | m_target->schema = schema; |
37 | 37 |
|
|
0 commit comments