Add SAL_FALLTHROUGH, where apparently appropriate

Change-Id: I005943a7c7bc4f8bfc647b2cf44f143a66a7e997
This commit is contained in:
Stephan Bergmann
2016-05-10 17:03:59 +02:00
parent 7d91753c5b
commit ddb4988c58
2 changed files with 3 additions and 2 deletions

View File

@@ -549,8 +549,8 @@ OUString SvxNumberFormat::CreateRomanString( sal_uLong nNo, bool bUpper )
} }
switch( nZahl ) switch( nZahl )
{ {
case 3: { sRet += OUString(*cRomanArr); } case 3: { sRet += OUString(*cRomanArr); SAL_FALLTHROUGH; }
case 2: { sRet += OUString(*cRomanArr); } case 2: { sRet += OUString(*cRomanArr); SAL_FALLTHROUGH; }
case 1: { sRet += OUString(*cRomanArr); } case 1: { sRet += OUString(*cRomanArr); }
break; break;

View File

@@ -1911,6 +1911,7 @@ void SAL_CALL SvxUnoTextBase::insertControlCharacter( const uno::Reference< text
return; return;
} }
SAL_FALLTHROUGH;
} }
default: default:
throw lang::IllegalArgumentException(); throw lang::IllegalArgumentException();