Skip to content

Commit

Permalink
Always use std:: for move (Xcode 15 warning).
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 22, 2023
1 parent 145c9e6 commit 805b851
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions codegen/emoji/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ using std::map;
using std::set;
using std::find;
using std::make_pair;
using std::move;
using std::begin;
using std::end;

Expand Down Expand Up @@ -319,7 +318,7 @@ void appendCategory(
if (it == result.map.cend()) {
const auto index = result.list.size();
it = result.map.emplace(bareId, index).first;
result.list.push_back(move(emoji));
result.list.push_back(std::move(emoji));
if (const auto a = Aliases.find(bareId); a != end(Aliases)) {
AliasesAdded.emplace(bareId);
for (const auto &alias : a->second) {
Expand All @@ -346,7 +345,7 @@ void appendCategory(
return it;
};

auto it = addOne(bareId, move(emoji));
auto it = addOne(bareId, std::move(emoji));
if (it == result.map.end()) {
return;
}
Expand Down Expand Up @@ -411,7 +410,7 @@ void appendCategory(
}
}
auto bareColoredId = colored.id.replace(QChar(kPostfix), QString());
if (addOne(bareColoredId, move(colored)) == result.map.end()) {
if (addOne(bareColoredId, std::move(colored)) == result.map.end()) {
return;
}
}
Expand Down

0 comments on commit 805b851

Please sign in to comment.