From: Jordan DeLong Date: Thu, 31 Jan 2013 00:09:43 +0000 (-0800) Subject: Codemod time\(NULL\) to time(nullptr) X-Git-Tag: v0.22.0~1064 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a449e4aa58564834289cc8cba430cc67fe72056f;p=folly.git 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 --- 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);