Codemod time\(NULL\) to time(nullptr)
authorJordan DeLong <jdelong@fb.com>
Thu, 31 Jan 2013 00:09:43 +0000 (16:09 -0800)
committerJordan DeLong <jdelong@fb.com>
Tue, 19 Mar 2013 00:07:14 +0000 (17:07 -0700)
Summary: codemod with 'Yes to all'.

Test Plan: None really.

Reviewed By: abirchall@fb.com

FB internal diff: D693769

folly/test/RWSpinLockTest.cpp

index 745ad68f6cea17c9ae9005b9ced0892964f0e6ba..8fcba1f5fe4675e18c261cc96ca544afa8d00137 100644 (file)
@@ -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<std::thread> 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<int64_t> reads(0);