summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-08-03 18:15:20 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-08-04 07:55:47 (GMT)
commita9a34edc82f2d121e294910549b7a4bca4f98db0 (patch)
treeb3157ad4c8a27df5bd3859cafeb1cc167baea0b5 /Tests
parent6f4966cd76796819cb3cd1625a18e5e6d225bec0 (diff)
downloadCMake-a9a34edc82f2d121e294910549b7a4bca4f98db0.zip
CMake-a9a34edc82f2d121e294910549b7a4bca4f98db0.tar.gz
CMake-a9a34edc82f2d121e294910549b7a4bca4f98db0.tar.bz2
cmList: Fix performance regression in append/prepend
Fixes: #25147
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/testList.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/CMakeLib/testList.cxx b/Tests/CMakeLib/testList.cxx
index 3e99ae8..8822806 100644
--- a/Tests/CMakeLib/testList.cxx
+++ b/Tests/CMakeLib/testList.cxx
@@ -858,7 +858,7 @@ bool testStaticModifiers()
}
{
std::string list{ "a;b;c" };
- cmList::append(list, "");
+ cmList::append(list, ""_s);
if (list != "a;b;c;") {
result = false;
@@ -893,7 +893,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;
@@ -901,7 +901,7 @@ bool testStaticModifiers()
}
{
std::string list;
- cmList::prepend(list, "d;e");
+ cmList::prepend(list, "d;e"_s);
if (list != "d;e") {
result = false;
@@ -909,7 +909,7 @@ bool testStaticModifiers()
}
{
std::string list{ "a;b;c" };
- cmList::prepend(list, "");
+ cmList::prepend(list, ""_s);
if (list != ";a;b;c") {
result = false;