Skip to content

Commit b047dd2

Browse files
committed
Add std::move()
1 parent 0224fd7 commit b047dd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/iso19111/factory.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9292,12 +9292,11 @@ AuthorityFactory::createObjectsFromNameEx(
92929292
const auto &table_name = row[0];
92939293
const auto &auth_name = row[1];
92949294
const auto &code = row[2];
9295-
const auto key =
9296-
std::pair<std::string, std::string>(auth_name, code);
9295+
auto key = std::pair<std::string, std::string>(auth_name, code);
92979296
if (setIdentified.find(key) != setIdentified.end()) {
92989297
continue;
92999298
}
9300-
setIdentified.insert(key);
9299+
setIdentified.insert(std::move(key));
93019300
const auto &deprecatedStr = row[4];
93029301
if (isFirst) {
93039302
firstIsDeprecated = deprecatedStr == "1";

0 commit comments

Comments
 (0)