diff options
author | Abseil Team <absl-team@google.com> | 2023-02-24 17:49:45 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-24 17:50:32 (GMT) |
commit | 3d787f5a0d58cfc37a0563bb15647a0d8aa2c1bf (patch) | |
tree | 98037151d7a3c1bdbf89dee01d5441cb7b05bb26 /googletest | |
parent | d0ba3ccc7659a7af2ee5d2039f8e6978f35b67ce (diff) | |
download | googletest-3d787f5a0d58cfc37a0563bb15647a0d8aa2c1bf.zip googletest-3d787f5a0d58cfc37a0563bb15647a0d8aa2c1bf.tar.gz googletest-3d787f5a0d58cfc37a0563bb15647a0d8aa2c1bf.tar.bz2 |
Add `const` qualifier to `gtest_sentinel` which doesn't change.
PiperOrigin-RevId: 512094429
Change-Id: I29b116da65bc7471c43021d1650d90f7b2a685c2
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/include/gtest/internal/gtest-death-test-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-death-test-internal.h b/googletest/include/gtest/internal/gtest-death-test-internal.h index 4687dae..21f3d29 100644 --- a/googletest/include/gtest/internal/gtest-death-test-internal.h +++ b/googletest/include/gtest/internal/gtest-death-test-internal.h @@ -238,7 +238,7 @@ inline Matcher<const ::std::string&> MakeDeathTestMatcher( } \ break; \ case ::testing::internal::DeathTest::EXECUTE_TEST: { \ - ::testing::internal::DeathTest::ReturnSentinel gtest_sentinel( \ + const ::testing::internal::DeathTest::ReturnSentinel gtest_sentinel( \ gtest_dt); \ GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt); \ gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE); \ |