summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib/testDebugger.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-06 23:31:15 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-07 14:13:24 (GMT)
commite4483b887147a8698a48babe6653ea9b9387d6e2 (patch)
tree4cc4e6685b04fdfa1b9afc6847d1bae4ce92a2b5 /Tests/CMakeLib/testDebugger.h
parented154b38963437c7a0208a45592988aa577ac7c9 (diff)
downloadCMake-e4483b887147a8698a48babe6653ea9b9387d6e2.zip
CMake-e4483b887147a8698a48babe6653ea9b9387d6e2.tar.gz
CMake-e4483b887147a8698a48babe6653ea9b9387d6e2.tar.bz2
Tests: Avoid compiling call to dap::optional<dap::string>(nullptr)
Diffstat (limited to 'Tests/CMakeLib/testDebugger.h')
-rw-r--r--Tests/CMakeLib/testDebugger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLib/testDebugger.h b/Tests/CMakeLib/testDebugger.h
index d8d2caa..df67278 100644
--- a/Tests/CMakeLib/testDebugger.h
+++ b/Tests/CMakeLib/testDebugger.h
@@ -19,7 +19,7 @@
do { \
ASSERT_TRUE(x.name == expectedName); \
ASSERT_TRUE(x.value == expectedValue); \
- if (expectedType == nullptr) { \
+ if (expectedType == std::string()) { \
ASSERT_TRUE(x.type == dap::optional<dap::string>()); \
} else { \
ASSERT_TRUE(x.type == dap::optional<dap::string>(expectedType)); \