Kaydet (Commit) ddaceeaf authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Tor Lillqvist

Move default: to end of switch

This helps prevent silly people like myself from asking about it on
IRC. Basically it is a coding convention, I've moved the default to
the end of the switch block.

Change-Id: I43ace7cb9fee4cff0b12be8d3f6b3669b270b898
Reviewed-on: https://gerrit.libreoffice.org/7277Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
Tested-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 854d7a1c
......@@ -748,9 +748,9 @@ sal_Bool EnhWMFReader::ReadEnhWMF()
bTransparent = sal_True;
aLineInfo.SetStyle( LINE_NONE );
break;
default :
case PS_INSIDEFRAME :
case PS_SOLID :
default :
aLineInfo.SetStyle( LINE_SOLID );
}
if ( nDashCount | nDotCount )
......@@ -802,9 +802,9 @@ sal_Bool EnhWMFReader::ReadEnhWMF()
aLineInfo.SetStyle( LINE_NONE );
break;
default :
case PS_INSIDEFRAME :
case PS_SOLID :
default :
aLineInfo.SetStyle( LINE_SOLID );
}
if ( nDashCount | nDotCount )
......@@ -1378,7 +1378,6 @@ sal_Bool EnhWMFReader::ReadEnhWMF()
}
break;
default : SAL_INFO("vcl.emf", "Unknown Meta Action"); break;
case EMR_MASKBLT : SAL_INFO("vcl.emf", "not implemented '" << "MaskBlt" << "'"); break;
case EMR_PLGBLT : SAL_INFO("vcl.emf", "not implemented '" << "PlgBlt" << "'"); break;
case EMR_SETDIBITSTODEVICE : SAL_INFO("vcl.emf", "not implemented '" << "SetDIBitsToDevice" << "'"); break;
......@@ -1433,6 +1432,8 @@ sal_Bool EnhWMFReader::ReadEnhWMF()
case EMR_GDICOMMENT :
case EMR_HEADER : // has already been read at ReadHeader()
break;
default : SAL_INFO("vcl.emf", "Unknown Meta Action"); break;
}
}
pWMF->Seek( nNextPos );
......
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