Skip to content

Commit

Permalink
Add std::move()
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 13, 2025
1 parent 0224fd7 commit b047dd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/iso19111/factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9292,12 +9292,11 @@ AuthorityFactory::createObjectsFromNameEx(
const auto &table_name = row[0];
const auto &auth_name = row[1];
const auto &code = row[2];
const auto key =
std::pair<std::string, std::string>(auth_name, code);
auto key = std::pair<std::string, std::string>(auth_name, code);
if (setIdentified.find(key) != setIdentified.end()) {
continue;
}
setIdentified.insert(key);
setIdentified.insert(std::move(key));
const auto &deprecatedStr = row[4];
if (isFirst) {
firstIsDeprecated = deprecatedStr == "1";
Expand Down

0 comments on commit b047dd2

Please sign in to comment.