mirror of https://gitee.com/bigwinds/arangodb
no explicit make_pair
This commit is contained in:
parent
d0fd1ea373
commit
c245f103e1
|
@ -108,7 +108,7 @@ namespace triagens {
|
||||||
TRI_vocbase_col_t const* collection = TRI_LookupCollectionByNameVocBase(_vocbase, name.c_str());
|
TRI_vocbase_col_t const* collection = TRI_LookupCollectionByNameVocBase(_vocbase, name.c_str());
|
||||||
|
|
||||||
if (collection != nullptr) {
|
if (collection != nullptr) {
|
||||||
_resolvedNames.emplace(std::make_pair(name, collection));
|
_resolvedNames.emplace(name, collection);
|
||||||
}
|
}
|
||||||
|
|
||||||
return collection;
|
return collection;
|
||||||
|
@ -190,7 +190,7 @@ namespace triagens {
|
||||||
name = "_unknown";
|
name = "_unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
_resolvedIds.emplace(std::make_pair(cid, name));
|
_resolvedIds.emplace(cid, name);
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ namespace triagens {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string&& name(getCollectionName(cid));
|
std::string name(std::move(getCollectionName(cid)));
|
||||||
buffer.appendText(name.c_str(), name.size());
|
buffer.appendText(name.c_str(), name.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue