Kaydet (Commit) a3f08030 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704317 Logically dead code

Change-Id: I680efdff5be6a9f699b8954c11eddc027f972a76
üst 42e74942
...@@ -639,7 +639,6 @@ Size ToolbarMenu::implCalcSize() ...@@ -639,7 +639,6 @@ Size ToolbarMenu::implCalcSize()
Size aMaxImgSz; Size aMaxImgSz;
long nMaxTextWidth = 0; long nMaxTextWidth = 0;
long nMinMenuItemHeight = nFontHeight+2; long nMinMenuItemHeight = nFontHeight+2;
sal_Bool bCheckable = sal_False;
const int nEntryCount = mpImpl->maEntryVector.size(); const int nEntryCount = mpImpl->maEntryVector.size();
int nEntry; int nEntry;
...@@ -668,8 +667,6 @@ Size ToolbarMenu::implCalcSize() ...@@ -668,8 +667,6 @@ Size ToolbarMenu::implCalcSize()
if ( aMaxImgSz.Width() ) if ( aMaxImgSz.Width() )
mpImpl->mnTextPos += std::max( nExtra, 7L ); mpImpl->mnTextPos += std::max( nExtra, 7L );
if ( bCheckable )
mpImpl->mnTextPos += 16;
// set heights, calc maximum width // set heights, calc maximum width
for( nEntry = 0; nEntry < nEntryCount; nEntry++ ) for( nEntry = 0; nEntry < nEntryCount; nEntry++ )
...@@ -678,9 +675,6 @@ Size ToolbarMenu::implCalcSize() ...@@ -678,9 +675,6 @@ Size ToolbarMenu::implCalcSize()
if( pEntry ) if( pEntry )
{ {
if ( ( pEntry->mnBits ) & ( MIB_RADIOCHECK | MIB_CHECKABLE ) )
bCheckable = sal_True;
// Text: // Text:
if( pEntry->mbHasText || pEntry->mbHasImage ) if( pEntry->mbHasText || pEntry->mbHasImage )
{ {
......
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