Kaydet (Commit) 1bda8ef1 authored tarafından Michael Stahl's avatar Michael Stahl

sw: convert this sal_uLong

Although, why not just use the pointer?

Change-Id: I1781a04bb97dba2ac6c769973345bb3c66f28904
üst 277bf233
...@@ -4519,7 +4519,7 @@ void SwShareBoxFormats::RemoveFormat( const SwFrameFormat& rFormat ) ...@@ -4519,7 +4519,7 @@ void SwShareBoxFormats::RemoveFormat( const SwFrameFormat& rFormat )
bool SwShareBoxFormats::Seek_Entry( const SwFrameFormat& rFormat, sal_uInt16* pPos ) const bool SwShareBoxFormats::Seek_Entry( const SwFrameFormat& rFormat, sal_uInt16* pPos ) const
{ {
sal_uLong nIdx = reinterpret_cast<sal_uLong>(&rFormat); sal_uIntPtr nIdx = reinterpret_cast<sal_uIntPtr>(&rFormat);
auto nO = m_ShareArr.size(); auto nO = m_ShareArr.size();
decltype(nO) nU = 0; decltype(nO) nU = 0;
if( nO > 0 ) if( nO > 0 )
...@@ -4528,7 +4528,7 @@ bool SwShareBoxFormats::Seek_Entry( const SwFrameFormat& rFormat, sal_uInt16* pP ...@@ -4528,7 +4528,7 @@ bool SwShareBoxFormats::Seek_Entry( const SwFrameFormat& rFormat, sal_uInt16* pP
while( nU <= nO ) while( nU <= nO )
{ {
const auto nM = nU + ( nO - nU ) / 2; const auto nM = nU + ( nO - nU ) / 2;
sal_uLong nFormat = reinterpret_cast<sal_uLong>(&m_ShareArr[ nM ]->GetOldFormat()); sal_uIntPtr nFormat = reinterpret_cast<sal_uIntPtr>(&m_ShareArr[ nM ]->GetOldFormat());
if( nFormat == nIdx ) if( nFormat == nIdx )
{ {
if( pPos ) if( pPos )
......
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