Skip to content

Commit

Permalink
fix(c api): removed junk find()
Browse files Browse the repository at this point in the history
  • Loading branch information
mcakircali committed Aug 13, 2024
1 parent 12b398f commit 8cd9711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fdb5/api/fdb_c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct fdb_split_key_t {
}

auto operator++() -> fdb_split_key_t& {
/// @todo the following "if" is an unfortuante consequense of a flaw in this iterator
/// @todo the following "if" is an unfortunate consequense of a flaw in this iterator
if (level_ == keys_->end()) {
level_ = keys_->begin();
curr_ = level_->begin();
Expand All @@ -127,7 +127,7 @@ struct fdb_split_key_t {
*k = key.c_str();
*v = val.c_str();

if (level) { *level = std::find(keys_->begin(), keys_->end(), *level_) - keys_->begin(); }
if (level) { *level = level_ - keys_->begin(); }
}

private: // members
Expand Down

0 comments on commit 8cd9711

Please sign in to comment.