mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
libexpr: Use c_str
getter
This commit is contained in:
parent
77f5f50ec2
commit
408873c2f7
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ class SymbolValue : protected Value
|
|||
public:
|
||||
operator std::string_view() const noexcept
|
||||
{
|
||||
return {payload.string.c_str, size_};
|
||||
return {c_str(), size_};
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -122,7 +122,7 @@ public:
|
|||
[[gnu::always_inline]]
|
||||
const char * c_str() const noexcept
|
||||
{
|
||||
return s->payload.string.c_str;
|
||||
return s->c_str();
|
||||
}
|
||||
|
||||
[[gnu::always_inline]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue