clang-tidy: apply suggested fixes
[lttng-tools.git] / src / bin / lttng-sessiond / tsdl-trace-class-visitor.cpp
index 83f4a24274fc84cd47799bd2327be35713b2702d..4129333c16ba4b54e881236e1bc158f6d67f44ee 100644 (file)
@@ -75,7 +75,7 @@ std::string escape_tsdl_identifier(const std::string& original_identifier)
        new_identifier = "_";
 
        /* Replace illegal characters by '_'. */
-       std::locale c_locale{ "C" };
+       const std::locale c_locale{ "C" };
        for (const auto current_char : original_identifier) {
                if (!std::isalnum(current_char, c_locale) && current_char != '_') {
                        new_identifier += '_';
This page took 0.022767 seconds and 4 git commands to generate.