From cfd0f1e6dd8bd75ab0b80d949cd76a67ff6724ed Mon Sep 17 00:00:00 2001 From: Ben Boeckel <ben.boeckel@kitware.com> Date: Tue, 23 Jan 2018 18:37:22 -0500 Subject: [PATCH] JoinPath: push back as a character This avoids a `strlen` call at least. --- SystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index 6f016d2..91745d9 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -3623,7 +3623,7 @@ std::string SystemTools::JoinPath( // All remaining components are always separated with a slash. while (first != last) { - result.append("/"); + result.push_back('/'); result.append((*first++)); } -- GitLab