mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 06:52:43 +01:00
libstore: Move State to an anonymous namespace
Having a State class in the nix namespace is asking for ODR trouble. This class is already private to the translation unit, let's move it into an anonymous namespace.
This commit is contained in:
parent
51a32e4645
commit
5ee0d5669e
1 changed files with 4 additions and 0 deletions
|
|
@ -10,12 +10,16 @@
|
|||
|
||||
namespace nix {
|
||||
|
||||
namespace {
|
||||
|
||||
struct State
|
||||
{
|
||||
std::map<Path, int> priorities;
|
||||
unsigned long symlinks = 0;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
/* For each activated package, create symlinks */
|
||||
static void createLinks(State & state, const Path & srcDir, const Path & dstDir, int priority)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue