1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 05:26:02 +01:00

refactor(libstore/find-cycles): make edges member private

Moved the `edges` member variable from public to private section for
better encapsulation. Access is provided through the `getEdges()`
method.
This commit is contained in:
Bernardo Meurer Costa 2025-10-11 19:36:03 +00:00
parent 5eebcf46fe
commit 2e9ea55795
No known key found for this signature in database

View file

@ -36,13 +36,13 @@ class CycleEdgeScanSink : public RefScanSink
{
std::string currentFilePath;
std::string storeDir;
StoreCycleEdgeVec edges;
// Track hashes we've already recorded for current file
// to avoid duplicates
StringSet recordedForCurrentFile;
public:
StoreCycleEdgeVec edges;
CycleEdgeScanSink(StringSet && hashes, std::string storeDir);