Kaydet (Commit) b125dd74 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Avoid misleading leading zeros in hex digit

The hex literal 0x00000001 is a 32-bit unsigned int on all our platforms. Here
it is being cast to a pointer,resulting in 32 or 64 bits. Using exactly eight
hex digits with leading zeroes gives the impression that the leading zeroes
and the total number of hex digits would have some significance.

Change-Id: I75904dc4261c195dfaaf45aa3de729994da6d8dc
üst 94a5f6b6
......@@ -626,7 +626,7 @@ void DbgWindow::InsertLine( const OUString& rLine )
sal_uInt16 nInsertionPos = maLstBox.InsertEntry( aStr.copy( 0, nPos ) );
if ( bFirstEntry )
maLstBox.SetEntryData( nInsertionPos, reinterpret_cast< void* >( 0x00000001 ) );
maLstBox.SetEntryData( nInsertionPos, reinterpret_cast< void* >( 1 ) );
bFirstEntry = sal_False;
aStr = aStr.replaceAt( 0, nPos+1, "" );
......@@ -636,7 +636,7 @@ void DbgWindow::InsertLine( const OUString& rLine )
maLstBox.RemoveEntry( 0 );
sal_uInt16 nInsertionPos = maLstBox.InsertEntry( aStr );
if ( bFirstEntry )
maLstBox.SetEntryData( nInsertionPos, reinterpret_cast< void* >( 0x00000001 ) );
maLstBox.SetEntryData( nInsertionPos, reinterpret_cast< void* >( 1 ) );
maLstBox.SetTopEntry( DBGWIN_MAXLINES-1 );
maLstBox.Update();
}
......
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