aboutsummaryrefslogtreecommitdiff
path: root/src/dep.cc
diff options
context:
space:
mode:
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);
}