Kaydet (Commit) 82e6e144 authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck reduce scope of var in tools/.. table.cxx

üst 03d21764
...@@ -121,11 +121,11 @@ sal_Bool Table::Insert( sal_uIntPtr nKey, void* p ) ...@@ -121,11 +121,11 @@ sal_Bool Table::Insert( sal_uIntPtr nKey, void* p )
{ {
if ( nCount <= 24 ) if ( nCount <= 24 )
{ {
sal_uInt16 n = 0;
sal_uInt16 nTempCount = (sal_uInt16)nCount * 2; sal_uInt16 nTempCount = (sal_uInt16)nCount * 2;
if( void** pNodes = Container::ImpGetOnlyNodes() ) if( void** pNodes = Container::ImpGetOnlyNodes() )
{ {
sal_uInt16 n = 0;
sal_uIntPtr nCompareKey = (sal_uIntPtr)(*pNodes); sal_uIntPtr nCompareKey = (sal_uIntPtr)(*pNodes);
while ( nKey > nCompareKey ) while ( nKey > nCompareKey )
{ {
......
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