diff options
author | Oliver Bolte <obo@openoffice.org> | 2007-07-17 13:24:02 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2007-07-17 13:24:02 +0000 |
commit | 894edf1c8522417e9a4c4b6c3986e5f877ef05da (patch) | |
tree | 8d5831ded3e64009fc4c958044450d4239d687cc /canvas | |
parent | d867173f243938ed63082fd03554dca644317aa8 (diff) |
INTEGRATION: CWS presfixes12 (1.9.18); FILE MERGED
2007/02/02 09:21:53 thb 1.9.18.1: #i37778# Changed old-style int casts to sal::static_int_cast; changed (double)x casts to double(x) initializations
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/tools/elapsedtime.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/canvas/source/tools/elapsedtime.cxx b/canvas/source/tools/elapsedtime.cxx index e8463db3e910..afb1f3378e0c 100644 --- a/canvas/source/tools/elapsedtime.cxx +++ b/canvas/source/tools/elapsedtime.cxx @@ -4,9 +4,9 @@ * * $RCSfile: elapsedtime.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: kz $ $Date: 2006-12-13 14:46:11 $ + * last change: $Author: obo $ $Date: 2007-07-17 14:24:02 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -105,12 +105,12 @@ double ElapsedTime::getSystemTime() QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER *>(&nCurrCount) ); nCurrCount -= nInitialCount; - return (double)nCurrCount / nPerfCountFreq; + return double(nCurrCount) / nPerfCountFreq; } else { LONGLONG nCurrTime = timeGetTime(); - return (double)nCurrTime / 1000.0; + return double(nCurrTime) / 1000.0; } } |