Skip to content

Commit f03b3ef

Browse files
committed
Modernize code: Call by value and move
1 parent bfd9282 commit f03b3ef

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/flex-table.hpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,24 @@ class flex_table_t
6464
return m_index_tablespace;
6565
}
6666

67-
void set_schema(std::string const &schema) noexcept { m_schema = schema; }
67+
void set_schema(std::string schema) noexcept
68+
{
69+
m_schema = std::move(schema);
70+
}
6871

6972
void set_cluster_by_geom(bool cluster) noexcept
7073
{
7174
m_cluster_by_geom = cluster;
7275
}
7376

74-
void set_data_tablespace(std::string const &tablespace) noexcept
77+
void set_data_tablespace(std::string tablespace) noexcept
7578
{
76-
m_data_tablespace = tablespace;
79+
m_data_tablespace = std::move(tablespace);
7780
}
7881

79-
void set_index_tablespace(std::string const &tablespace) noexcept
82+
void set_index_tablespace(std::string tablespace) noexcept
8083
{
81-
m_index_tablespace = tablespace;
84+
m_index_tablespace = std::move(tablespace);
8285
}
8386

8487
osmium::item_type id_type() const noexcept { return m_id_type; }

0 commit comments

Comments
 (0)