Skip to content

Commit

Permalink
Fix usage of std::forward
Browse files Browse the repository at this point in the history
  • Loading branch information
wichtounet committed Sep 22, 2023
1 parent 0685acb commit 55642d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wishes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ wish budget::wish_get(size_t id) {
}

size_t budget::add_wish(budget::wish&& wish){
return wishes.add(std::forward<budget::wish>(wish));
return wishes.add(std::move(wish));
}

bool budget::edit_wish(const budget::wish& wish){
Expand Down

0 comments on commit 55642d6

Please sign in to comment.