From a449e4aa58564834289cc8cba430cc67fe72056f Mon Sep 17 00:00:00 2001 From: Jordan DeLong Date: Wed, 30 Jan 2013 16:09:43 -0800 Subject: [PATCH] Codemod time\(NULL\) to time(nullptr) Summary: codemod with 'Yes to all'. Test Plan: None really. Reviewed By: abirchall@fb.com FB internal diff: D693769 --- folly/test/RWSpinLockTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/test/RWSpinLockTest.cpp b/folly/test/RWSpinLockTest.cpp index 745ad68f..8fcba1f5 100644 --- a/folly/test/RWSpinLockTest.cpp +++ b/folly/test/RWSpinLockTest.cpp @@ -149,7 +149,7 @@ TYPED_TEST(RWSpinLockTest, Write_Holders) { TYPED_TEST(RWSpinLockTest, ConcurrentTests) { typedef typename TestFixture::RWSpinLockType RWSpinLockType; RWSpinLockType l; - srand(time(NULL)); + srand(time(nullptr)); std::vector threads; for (int i = 0; i < FLAGS_num_threads; ++i) { @@ -188,7 +188,7 @@ TEST(RWSpinLock, lock_unlock_tests) { } TEST(RWSpinLock, concurrent_holder_test) { - srand(time(NULL)); + srand(time(nullptr)); folly::RWSpinLock lock; std::atomic reads(0); -- 2.34.1