diff options
author | Cole Faust <colefaust@google.com> | 2023-01-11 16:02:18 -0800 |
---|---|---|
committer | Matthias Maennich <matthias@maennich.net> | 2023-01-13 10:28:52 +0000 |
commit | 462b39477dc01a66dca59af85d8b50aeae100bb8 (patch) | |
tree | 6f3da42f1f9a6cec24d7eb5cf98451ee6772b05a /src/dep.cc | |
parent | 43f4e4605c54be891e4eddf57a6a2a916fb9b10f (diff) | |
download | kati-462b39477dc01a66dca59af85d8b50aeae100bb8.tar.gz |
Remove AppendString
No longer necessary now that we're using std::string_view
Diffstat (limited to 'src/dep.cc')
-rw-r--r-- | src/dep.cc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -39,10 +39,9 @@ namespace { static std::vector<std::unique_ptr<DepNode>> g_dep_node_pool; static Symbol ReplaceSuffix(Symbol s, Symbol newsuf) { - std::string r; - AppendString(StripExt(s.str()), &r); + std::string r{StripExt(s.str())}; r += '.'; - AppendString(newsuf.str(), &r); + r += newsuf.str(); return Intern(r); } |