Skip to content

Commit 470092d

Browse files
committed
Accessors should return string references, not copies
1 parent 5957717 commit 470092d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/expire-output.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ class expire_output_t
2929
public:
3030
expire_output_t() = default;
3131

32-
std::string filename() const noexcept { return m_filename; }
32+
std::string const &filename() const noexcept { return m_filename; }
3333

3434
void set_filename(std::string filename)
3535
{
3636
m_filename = std::move(filename);
3737
}
3838

39-
std::string schema() const noexcept { return m_schema; }
39+
std::string const &schema() const noexcept { return m_schema; }
4040

41-
std::string table() const noexcept { return m_table; }
41+
std::string const &table() const noexcept { return m_table; }
4242

4343
void set_schema_and_table(std::string schema, std::string table)
4444
{

0 commit comments

Comments
 (0)