aboutsummaryrefslogtreecommitdiff
path: root/src/dep.cc
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2023-01-11 16:02:18 -0800
committerMatthias Maennich <matthias@maennich.net>2023-01-13 10:28:52 +0000
commit462b39477dc01a66dca59af85d8b50aeae100bb8 (patch)
tree6f3da42f1f9a6cec24d7eb5cf98451ee6772b05a /src/dep.cc
parent43f4e4605c54be891e4eddf57a6a2a916fb9b10f (diff)
downloadkati-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.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dep.cc b/src/dep.cc
index 5ba59fe..0391cb7 100644
--- a/src/dep.cc
+++ b/src/dep.cc
@@ -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);
}