qelapsedtimer_win.cpp: Fix clang-tidy warning about else after return

Remove else in nelper nanosecondsToTicks()

Change-Id: I6c5291deaeb6651f702a9c118cabcb5a7edd179e
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Friedemann Kleint 2018-08-30 13:36:55 +02:00
parent 9a15ac356c
commit 30756f4626
1 changed files with 2 additions and 3 deletions

View File

@ -83,10 +83,9 @@ static inline qint64 nanosecondsToTicks(qint64 nsec)
if (counterFrequency > 0) {
// QueryPerformanceCounter uses an arbitrary frequency
return double(nsec) * counterFrequency / 1000000000.;
} else {
// GetTickCount(64) uses milliseconds
return nsec / 1000000;
}
// GetTickCount(64) uses milliseconds
return nsec / 1000000;
}
static quint64 getTickCount()