From 93b86d950dfb3f90af27567b472f85c97a1f39a6 Mon Sep 17 00:00:00 2001 From: Adam Edward Barton <adam.edward.barton@cern.ch> Date: Thu, 13 Aug 2020 11:28:53 +0100 Subject: [PATCH] clang-tidy: call char overload for better performance --- Control/CxxUtils/Root/StringUtils.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Control/CxxUtils/Root/StringUtils.cxx b/Control/CxxUtils/Root/StringUtils.cxx index d23fec7f904c..fc8f1600fe94 100644 --- a/Control/CxxUtils/Root/StringUtils.cxx +++ b/Control/CxxUtils/Root/StringUtils.cxx @@ -705,7 +705,7 @@ namespace CxxUtils { case '$': { // find the end of the math block - size_t endpos = latex.find("$",nextpos+1); + size_t endpos = latex.find('$',nextpos+1); if(endpos == std::string::npos){ // it's unterminated, break retval += latex.substr(pos); -- GitLab