From 5476eada003a1fbc182676c625b767efb2c16e6f Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sun, 6 Jan 2019 12:06:48 +1100 Subject: Bug [#2068]. Fix some clang-tidy warnings. --- lexlib/PropSetSimple.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib') diff --git a/lexlib/PropSetSimple.cxx b/lexlib/PropSetSimple.cxx index ba76019be..5ce353c71 100644 --- a/lexlib/PropSetSimple.cxx +++ b/lexlib/PropSetSimple.cxx @@ -117,7 +117,7 @@ static int ExpandAllInPlace(const PropSetSimple &props, std::string &withVars, i innerVarStart = withVars.find("$(", varStart+2); } - std::string var(withVars.c_str(), varStart + 2, varEnd - varStart - 2); + std::string var(withVars, varStart + 2, varEnd - varStart - 2); std::string val = props.Get(var.c_str()); if (blankVars.contains(var.c_str())) { -- cgit v1.2.3