diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 05:18:05 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 05:18:05 +0100 |
commit | 89e03988ec2f001f71d2f455552701264ff59e51 (patch) | |
tree | 06e07b6a97ba88470b7837a5f255c04f6594e00f /src/libstore/path-info.hh | |
parent | 622b0e9428d9ce8587bce3f7e0e896d527ab7f18 (diff) |
Merge pull request #9238 from tfc/small-improvements2
Small improvements 2
(cherry picked from commit 1dc6a65d361456d0e082065eb189d9b67d93aacd)
Change-Id: I8ed573c496068c4a92f53c1caafa49da59d75967
Diffstat (limited to 'src/libstore/path-info.hh')
-rw-r--r-- | src/libstore/path-info.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/path-info.hh b/src/libstore/path-info.hh index a82e643ae..c4c4a6366 100644 --- a/src/libstore/path-info.hh +++ b/src/libstore/path-info.hh @@ -29,7 +29,7 @@ struct SubstitutablePathInfo uint64_t narSize; }; -typedef std::map<StorePath, SubstitutablePathInfo> SubstitutablePathInfos; +using SubstitutablePathInfos = std::map<StorePath, SubstitutablePathInfo>; struct UnkeyedValidPathInfo @@ -42,7 +42,7 @@ struct UnkeyedValidPathInfo StorePathSet references; time_t registrationTime = 0; uint64_t narSize = 0; // 0 = unknown - uint64_t id; // internal use only + uint64_t id = 0; // internal use only /** * Whether the path is ultimately trusted, that is, it's a @@ -136,6 +136,6 @@ struct ValidPathInfo : UnkeyedValidPathInfo { virtual ~ValidPathInfo() { } }; -typedef std::map<StorePath, ValidPathInfo> ValidPathInfos; +using ValidPathInfos = std::map<StorePath, ValidPathInfo>; } |