Commit a449e4aa authored by Jordan DeLong's avatar Jordan DeLong

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
parent 794e35e5
...@@ -149,7 +149,7 @@ TYPED_TEST(RWSpinLockTest, Write_Holders) { ...@@ -149,7 +149,7 @@ TYPED_TEST(RWSpinLockTest, Write_Holders) {
TYPED_TEST(RWSpinLockTest, ConcurrentTests) { TYPED_TEST(RWSpinLockTest, ConcurrentTests) {
typedef typename TestFixture::RWSpinLockType RWSpinLockType; typedef typename TestFixture::RWSpinLockType RWSpinLockType;
RWSpinLockType l; RWSpinLockType l;
srand(time(NULL)); srand(time(nullptr));
std::vector<std::thread> threads; std::vector<std::thread> threads;
for (int i = 0; i < FLAGS_num_threads; ++i) { for (int i = 0; i < FLAGS_num_threads; ++i) {
...@@ -188,7 +188,7 @@ TEST(RWSpinLock, lock_unlock_tests) { ...@@ -188,7 +188,7 @@ TEST(RWSpinLock, lock_unlock_tests) {
} }
TEST(RWSpinLock, concurrent_holder_test) { TEST(RWSpinLock, concurrent_holder_test) {
srand(time(NULL)); srand(time(nullptr));
folly::RWSpinLock lock; folly::RWSpinLock lock;
std::atomic<int64_t> reads(0); std::atomic<int64_t> reads(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment