Skip to content

Commit 408873c

Browse files
committed
libexpr: Use c_str getter
1 parent 77f5f50 commit 408873c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libexpr/include/nix/expr/symbol-table.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SymbolValue : protected Value
2929
public:
3030
operator std::string_view() const noexcept
3131
{
32-
return {payload.string.c_str, size_};
32+
return {c_str(), size_};
3333
}
3434
};
3535

@@ -122,7 +122,7 @@ public:
122122
[[gnu::always_inline]]
123123
const char * c_str() const noexcept
124124
{
125-
return s->payload.string.c_str;
125+
return s->c_str();
126126
}
127127

128128
[[gnu::always_inline]]

0 commit comments

Comments
 (0)