Skip to content

Commit

Permalink
reproc++: Make deleter a static function.
Browse files Browse the repository at this point in the history
No reason for a lambda when a static function will do.
  • Loading branch information
DaanDeMeyer committed Nov 8, 2020
1 parent 660fade commit 50be820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reproc++/src/reproc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ static reproc_options reproc_options_from(const options &options, bool fork)
};
}

const auto deleter = [](reproc_t *process) noexcept {
static void deleter(reproc_t *process) noexcept {
reproc_destroy(process);
};
}

process::process() : impl_(reproc_new(), deleter) {}
process::~process() noexcept = default;
Expand Down

0 comments on commit 50be820

Please sign in to comment.