mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Move json stuff out of util.cc
This commit is contained in:
parent
1385b20078
commit
3e87c8e62b
4 changed files with 22 additions and 20 deletions
|
@ -1586,23 +1586,8 @@ std::string stripIndentation(std::string_view s)
|
|||
}
|
||||
|
||||
|
||||
const nlohmann::json * get(const nlohmann::json & map, const std::string & key)
|
||||
{
|
||||
auto i = map.find(key);
|
||||
if (i == map.end()) return nullptr;
|
||||
return &*i;
|
||||
}
|
||||
|
||||
nlohmann::json * get(nlohmann::json & map, const std::string & key)
|
||||
{
|
||||
auto i = map.find(key);
|
||||
if (i == map.end()) return nullptr;
|
||||
return &*i;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
static Sync<std::pair<unsigned short, unsigned short>> windowSize{{0, 0}};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue