projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[C++11] Use 'nullptr'.
[oota-llvm.git]
/
unittests
/
Support
/
TimeValueTest.cpp
diff --git
a/unittests/Support/TimeValueTest.cpp
b/unittests/Support/TimeValueTest.cpp
index 8058812ff4ed2491f73cb4529923f0e63a1630d7..3d2b9780c069d3a7dbbe1373881d70a16306917c 100644
(file)
--- a/
unittests/Support/TimeValueTest.cpp
+++ b/
unittests/Support/TimeValueTest.cpp
@@
-16,7
+16,7
@@
namespace {
TEST(TimeValue, time_t) {
sys::TimeValue now = sys::TimeValue::now();
TEST(TimeValue, time_t) {
sys::TimeValue now = sys::TimeValue::now();
- time_t now_t = time(
NULL
);
+ time_t now_t = time(
nullptr
);
EXPECT_TRUE(std::abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
}
EXPECT_TRUE(std::abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
}