summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-08-08 13:18:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-08-08 13:39:04 (GMT)
commit741d19896c39a71920f9496d1509df35da4299c7 (patch)
tree75cf679b54f21ffa10442c6cde9094d46c2cdd98 /Tests
parentbd365b520eca84802ec1427c8823b3fc8c9db767 (diff)
parent7f9f96151ab4b17598c2f449d887dbe2a123a54a (diff)
downloadCMake-741d19896c39a71920f9496d1509df35da4299c7.zip
CMake-741d19896c39a71920f9496d1509df35da4299c7.tar.gz
CMake-741d19896c39a71920f9496d1509df35da4299c7.tar.bz2
Merge topic 'cmList-append-regression' into release-3.27
7f9f96151a cmList: Fix performance regression in append/prepend Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8684
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 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;