Skip to content

Commit

Permalink
Merge pull request #2218 from LukashonakV/Wdeprecated
Browse files Browse the repository at this point in the history
deprecated: implicit capture of 'this' via '[=]'
  • Loading branch information
Alexays committed Jun 6, 2023
2 parents 070110a + 6bf5b15 commit c5379fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/wlr/workspace_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ WorkspaceManager::WorkspaceManager(const std::string &id, const waybar::Bar &bar

auto WorkspaceManager::workspace_comparator() const
-> std::function<bool(std::unique_ptr<Workspace> &, std::unique_ptr<Workspace> &)> {
return [=](std::unique_ptr<Workspace> &lhs, std::unique_ptr<Workspace> &rhs) {
return [=, this](std::unique_ptr<Workspace> &lhs, std::unique_ptr<Workspace> &rhs) {
auto is_name_less = lhs->get_name() < rhs->get_name();
auto is_name_eq = lhs->get_name() == rhs->get_name();
auto is_coords_less = lhs->get_coords() < rhs->get_coords();
Expand Down

0 comments on commit c5379fa

Please sign in to comment.