mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
SymbolStr: Remove std::string conversion
This refactoring allows the symbol table to be stored as something other than std::strings.
This commit is contained in:
parent
0363dbf2b9
commit
61080554ab
15 changed files with 37 additions and 37 deletions
|
@ -30,9 +30,9 @@ public:
|
|||
return *s == s2;
|
||||
}
|
||||
|
||||
operator const std::string & () const
|
||||
const char * c_str() const
|
||||
{
|
||||
return *s;
|
||||
return s->c_str();
|
||||
}
|
||||
|
||||
operator const std::string_view () const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue