diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:26:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:54 +0100 |
commit | 1c4f33b5d8ba6a8cebb0235bb2e7e37e33045a5b (patch) | |
tree | 80530f50cf36927a1e4f31ad0192077bfb0ecf39 /tools/source/datetime | |
parent | 175e2adfd1677cb83373b0ba47853493f3b77859 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: Ia5acfb564f913d52cd25b5d64d06b5280b94cb72
Diffstat (limited to 'tools/source/datetime')
-rw-r--r-- | tools/source/datetime/tdate.cxx | 2 | ||||
-rw-r--r-- | tools/source/datetime/ttime.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx index b6790b035944..54985ec553c7 100644 --- a/tools/source/datetime/tdate.cxx +++ b/tools/source/datetime/tdate.cxx @@ -155,7 +155,7 @@ Date::Date( DateInitSystem ) struct tm aTime; // get current time - nTmpTime = time( 0 ); + nTmpTime = time( nullptr ); // compute date if ( localtime_r( &nTmpTime, &aTime ) ) diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx index 3b4a809bb62b..b6bdf040d579 100644 --- a/tools/source/datetime/ttime.cxx +++ b/tools/source/datetime/ttime.cxx @@ -119,7 +119,7 @@ Time::Time( TimeInitSystem ) if (clock_gettime(CLOCK_REALTIME, &tsTime) != 0) { struct timeval tvTime; - OSL_VERIFY( gettimeofday(&tvTime, NULL) != 0 ); + OSL_VERIFY( gettimeofday(&tvTime, nullptr) != 0 ); tsTime.tv_sec = tvTime.tv_sec; tsTime.tv_nsec = tvTime.tv_usec * 1000; } @@ -383,7 +383,7 @@ Time tools::Time::GetUTCOffset() ( nTicks < nCacheTicks ) // handle overflow ) { - nTime = time( 0 ); + nTime = time( nullptr ); localtime_r( &nTime, &aTM ); nLocalTime = mktime( &aTM ); #if defined( SOLARIS ) @@ -427,7 +427,7 @@ sal_uInt64 tools::Time::GetSystemTicks() (nPerformanceCount.QuadPart*1000)/nTicksPerSecond.QuadPart); #else timeval tv; - int n = gettimeofday (&tv, 0); + int n = gettimeofday (&tv, nullptr); if (n == -1) { int e = errno; SAL_WARN("tools.datetime", "gettimeofday failed: " << e); |