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

coverity#704369 Logically dead code

Change-Id: I2fb01f407eee9a8bb4c63f2dda70e5088c80e4cf
üst ade9581c
......@@ -3185,20 +3185,8 @@ void SwWW8ImplReader::Read_Underline( sal_uInt16, const sal_uInt8* pData, short
// 3 = double, 4 = dotted, 5 = hidden
// 6 = thick, 7 = dash, 8 = dot(not used)
// 9 = dotdash 10 = dotdotdash 11 = wave
// pruefe auf Sonderfall "fett+unterstrichen"
bool bAlsoBold = /*( 6 == b )*/ false;
// erst mal ggfs. *bold* einschalten!
if( bAlsoBold )
{
sal_uInt8 nOn = 1;
Read_BoldUsw( 0x0835, &nOn, nLen );
eUnderline = UNDERLINE_SINGLE;
}
else
switch( *pData )
{
switch( *pData )
{
case 2: bWordLine = true; // no break;
case 1: eUnderline = (FontUnderline)UNDERLINE_SINGLE; break;
case 3: eUnderline = (FontUnderline)UNDERLINE_DOUBLE; break;
......@@ -3216,7 +3204,6 @@ void SwWW8ImplReader::Read_Underline( sal_uInt16, const sal_uInt8* pData, short
case 26:eUnderline = (FontUnderline)UNDERLINE_BOLDDASHDOTDOT;break;
case 27:eUnderline = (FontUnderline)UNDERLINE_BOLDWAVE; break;
case 43:eUnderline = (FontUnderline)UNDERLINE_DOUBLEWAVE; break;
}
}
}
......
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