diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-08-03 17:02:25 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2023-08-04 07:52:08 (GMT) |
commit | 7f9f96151ab4b17598c2f449d887dbe2a123a54a (patch) | |
tree | 05eff7315f9e1212ad6f01f62b03ee1754eec31b /Tests | |
parent | 6e4822a035d1af77b9a86e36cdd213c3d2fce54c (diff) | |
download | CMake-7f9f96151ab4b17598c2f449d887dbe2a123a54a.zip CMake-7f9f96151ab4b17598c2f449d887dbe2a123a54a.tar.gz CMake-7f9f96151ab4b17598c2f449d887dbe2a123a54a.tar.bz2 |
cmList: Fix performance regression in append/prepend
Fixes: #25147
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/testList.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/CMakeLib/testList.cxx b/Tests/CMakeLib/testList.cxx index f6ec720..6d6c218 100644 --- a/Tests/CMakeLib/testList.cxx +++ b/Tests/CMakeLib/testList.cxx @@ -859,7 +859,7 @@ bool testStaticModifiers() } { std::string list{ "a;b;c" }; - cmList::append(list, ""); + cmList::append(list, ""_s); if (list != "a;b;c;") { result = false; @@ -894,7 +894,7 @@ bool testStaticModifiers() } { std::string list{ "a;b;c" }; - cmList::prepend(list, "d;e"); + cmList::prepend(list, "d;e"_s); if (list != "d;e;a;b;c") { result = false; @@ -902,7 +902,7 @@ bool testStaticModifiers() } { std::string list; - cmList::prepend(list, "d;e"); + cmList::prepend(list, "d;e"_s); if (list != "d;e") { result = false; @@ -910,7 +910,7 @@ bool testStaticModifiers() } { std::string list{ "a;b;c" }; - cmList::prepend(list, ""); + cmList::prepend(list, ""_s); if (list != ";a;b;c") { result = false; |