mirror of
https://github.com/NixOS/nix.git
synced 2025-12-18 23:11:08 +01:00
Use StringMap instead of std::map<std::string, std::string> throughout the codebase
This commit is contained in:
parent
8c10104e9e
commit
8ee513379a
26 changed files with 37 additions and 37 deletions
|
|
@ -89,9 +89,9 @@ bool getBoolAttr(const Attrs & attrs, const std::string & name)
|
|||
return *s;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> attrsToQuery(const Attrs & attrs)
|
||||
StringMap attrsToQuery(const Attrs & attrs)
|
||||
{
|
||||
std::map<std::string, std::string> query;
|
||||
StringMap query;
|
||||
for (auto & attr : attrs) {
|
||||
if (auto v = std::get_if<uint64_t>(&attr.second)) {
|
||||
query.insert_or_assign(attr.first, fmt("%d", *v));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue