summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-28 13:42:16 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-28 13:55:36 (GMT)
commitd59afbd92eb0bee30adc9f3150fcbe9872742daa (patch)
tree4fac95cdda5a288ba20e9e1c8c3e312ce4598ccf
parent49c6d0f26199c252b493ed5f816dbcb2e9701112 (diff)
downloadCMake-d59afbd92eb0bee30adc9f3150fcbe9872742daa.zip
CMake-d59afbd92eb0bee30adc9f3150fcbe9872742daa.tar.gz
CMake-d59afbd92eb0bee30adc9f3150fcbe9872742daa.tar.bz2
Tests: Fix RunCMake.GenerateExportHeader use of size_t
Since commit ddcd1469e8 (MSYS: Add support for running under MSYS runtime environment, 2021-04-01) the test uses `std::size_t` without including `<cstddef>`. Also, the type does not exist under `std::` on VS 6. Use just `size_t` instead.
-rw-r--r--Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp b/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp
index ed8c35e..2cfcd8d 100644
--- a/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp
+++ b/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp
@@ -10,7 +10,7 @@
static void rtrim(std::string& str, char byte)
{
- const std::size_t size = str.size();
+ size_t const size = str.size();
if (size && str[size - 1] == byte) {
str.resize(size - 1);
}