Merge "nar-info: use string views for construction" into main
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace nix {
|
||||
|
||||
NarInfo::NarInfo(const Store & store, const std::string & s, const std::string & whence)
|
||||
NarInfo::NarInfo(const Store & store, const std::string_view & s, const std::string_view & whence)
|
||||
: ValidPathInfo(StorePath(StorePath::dummy), Hash(Hash::dummy)) // FIXME: hack
|
||||
{
|
||||
unsigned line = 1;
|
||||
|
||||
@@ -22,7 +22,7 @@ struct NarInfo : ValidPathInfo
|
||||
{ }
|
||||
NarInfo(StorePath && path, Hash narHash) : ValidPathInfo(std::move(path), narHash) { }
|
||||
NarInfo(const ValidPathInfo & info) : ValidPathInfo(info) { }
|
||||
NarInfo(const Store & store, const std::string & s, const std::string & whence);
|
||||
NarInfo(const Store & store, const std::string_view & s, const std::string_view & whence);
|
||||
|
||||
std::string to_string(const Store & store) const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user