Skip to content

Commit

Permalink
fix: insertion column, remove reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Aug 30, 2023
1 parent cef4d48 commit d940c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/silo/storage/column/insertion_column.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ class InsertionColumnPartition {
common::BidirectionalMap<std::string>& lookup;

public:
const std::optional<std::string>& default_sequence_name;
const std::optional<std::string> default_sequence_name;

explicit InsertionColumnPartition(
common::BidirectionalMap<std::string>& lookup,
const std::optional<std::string>& default_sequence_name
const std::optional<std::string> default_sequence_name
);

void insert(const std::string& value);
Expand Down
4 changes: 2 additions & 2 deletions src/silo/storage/column/insertion_column.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ InsertionEntry parseInsertion(
template <typename SymbolType>
InsertionColumnPartition<SymbolType>::InsertionColumnPartition(
common::BidirectionalMap<std::string>& lookup,
const std::optional<std::string>& default_sequence_name
const std::optional<std::string> default_sequence_name

)
: lookup(lookup),
default_sequence_name(default_sequence_name) {}
default_sequence_name(std::move(default_sequence_name)) {}

template <typename SymbolType>
void InsertionColumnPartition<SymbolType>::insert(const std::string& value) {
Expand Down

0 comments on commit d940c52

Please sign in to comment.