Kaydet (Commit) 8e369625 authored tarafından Matteo Casalin's avatar Matteo Casalin

Avoid intermediate cast to sal_uIntPtr

Change-Id: Ia7b5f519e381318f1d1cd6d0f982d22e8bbdffa7
üst 90cdd9ee
...@@ -265,10 +265,12 @@ DateTime DateTime::CreateFromWin32FileDateTime( const sal_uInt32 & rLower, const ...@@ -265,10 +265,12 @@ DateTime DateTime::CreateFromWin32FileDateTime( const sal_uInt32 & rLower, const
Date _aDate( Date _aDate(
(sal_uInt16)( nDays + 1 ), nMonths, (sal_uInt16)( nDays + 1 ), nMonths,
sal::static_int_cast< sal_uInt16 >(nYears + 1601) ); sal::static_int_cast< sal_uInt16 >(nYears + 1601) );
tools::Time _aTime( sal_uIntPtr( ( aTime / ( a100nPerSecond * 60 * 60 ) ) % sal_Int64( 24 ) ), tools::Time _aTime(
sal_uIntPtr( ( aTime / ( a100nPerSecond * 60 ) ) % sal_Int64( 60 ) ), static_cast<sal_uInt32>( ( aTime / ( a100nPerSecond * 60 * 60 ) ) % sal_Int64( 24 ) ),
sal_uIntPtr( ( aTime / ( a100nPerSecond ) ) % sal_Int64( 60 ) ), static_cast<sal_uInt32>( ( aTime / ( a100nPerSecond * 60 ) ) % sal_Int64( 60 ) ),
(aTime % a100nPerSecond) * 100 ); static_cast<sal_uInt32>( ( aTime / ( a100nPerSecond ) ) % sal_Int64( 60 ) ),
static_cast<sal_uInt64>(aTime % a100nPerSecond) * 100
);
return DateTime( _aDate, _aTime ); return DateTime( _aDate, _aTime );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment