Permalink
Browse files

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
  • Loading branch information...
1 parent 794e35e commit a449e4aa58564834289cc8cba430cc67fe72056f @jdelong jdelong committed Jan 31, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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<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);

0 comments on commit a449e4a

Please sign in to comment.