summaryrefslogtreecommitdiff
path: root/googletest/docs
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-06-01 13:08:01 -0400
committerGennadiy Rozental <rogeeff@google.com>2020-06-02 20:45:03 -0400
commitdf6813f5e0770f5028b4e897871478e3b8c98969 (patch)
treeec2f6f6e42a09bd20bf7af084bc390ad34a2e02f /googletest/docs
parent859bfe8981d6724c4ea06e73d29accd8588f3230 (diff)
downloadgoogletest-git-df6813f5e0770f5028b4e897871478e3b8c98969.tar.gz
Googletest export
Modify NULL to nullptr in code examples PiperOrigin-RevId: 314150792
Diffstat (limited to 'googletest/docs')
-rw-r--r--googletest/docs/advanced.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md
index 7ca40fef..60c1a2b0 100644
--- a/googletest/docs/advanced.md
+++ b/googletest/docs/advanced.md
@@ -1006,7 +1006,7 @@ TEST(FooTest, Bar) {
// in Subroutine() to abort the entire test.
// The actual behavior: the function goes on after Subroutine() returns.
- int* p = NULL;
+ int* p = nullptr;
*p = 3; // Segfault!
}
```
@@ -1193,7 +1193,7 @@ class FooTest : public ::testing::Test {
// Can be omitted if not needed.
static void TearDownTestSuite() {
delete shared_resource_;
- shared_resource_ = NULL;
+ shared_resource_ = nullptr;
}
// You can define per-test set-up logic as usual.
@@ -1206,7 +1206,7 @@ class FooTest : public ::testing::Test {
static T* shared_resource_;
};
-T* FooTest::shared_resource_ = NULL;
+T* FooTest::shared_resource_ = nullptr;
TEST_F(FooTest, Test1) {
... you can refer to shared_resource_ here ...