1
0
Fork 0

no explicit make_pair

This commit is contained in:
Jan Steemann 2015-08-05 22:58:31 +02:00 committed by Michael Hackstein
parent d0fd1ea373
commit c245f103e1
1 changed files with 3 additions and 3 deletions

View File

@ -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());
} }