From fa8c5cf9e79c76b8135ab429d243cd701250f721 Mon Sep 17 00:00:00 2001 From: firewave Date: Thu, 12 Mar 2026 17:47:33 +0100 Subject: [PATCH] refs #14593 - improved string concatination in `ScopeInfo3` constructor --- lib/tokenize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 193fa5bbb4d..45437b85f43 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2418,7 +2418,8 @@ namespace { while (scope && scope->parent) { if (scope->name.empty()) break; - fullName = scope->name + " :: " + fullName; + fullName.insert(0, " :: "); + fullName.insert(0, scope->name); scope = scope->parent; } }