1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 15:02:42 +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:
Sergei Zimmerman 2025-08-05 02:15:21 +03:00
parent 51a32e4645
commit 5ee0d5669e
No known key found for this signature in database

View file

@ -10,12 +10,16 @@
namespace nix { namespace nix {
namespace {
struct State struct State
{ {
std::map<Path, int> priorities; std::map<Path, int> priorities;
unsigned long symlinks = 0; unsigned long symlinks = 0;
}; };
} // namespace
/* For each activated package, create symlinks */ /* For each activated package, create symlinks */
static void createLinks(State & state, const Path & srcDir, const Path & dstDir, int priority) static void createLinks(State & state, const Path & srcDir, const Path & dstDir, int priority)
{ {