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

coverity#1130352 Unchecked dynamic_cast

Change-Id: I62f0e632e37a9b532248cd9c632d6cbc626045d0
üst b74f9e31
...@@ -3043,7 +3043,7 @@ bool SwWW8ImplReader::ReadPlainChars(WW8_CP& rPos, sal_Int32 nEnd, sal_Int32 nCp ...@@ -3043,7 +3043,7 @@ bool SwWW8ImplReader::ReadPlainChars(WW8_CP& rPos, sal_Int32 nEnd, sal_Int32 nCp
sal_uInt16 nCTLLang = 0; sal_uInt16 nCTLLang = 0;
const SfxPoolItem * pItem = GetFmtAttr(RES_CHRATR_CTL_LANGUAGE); const SfxPoolItem * pItem = GetFmtAttr(RES_CHRATR_CTL_LANGUAGE);
if (pItem != NULL) if (pItem != NULL)
nCTLLang = dynamic_cast<const SvxLanguageItem *>(pItem)->GetLanguage(); nCTLLang = static_cast<const SvxLanguageItem *>(pItem)->GetLanguage();
sal_Int32 nL2; sal_Int32 nL2;
for( nL2 = 0; nL2 < nStrLen; ++nL2, ++pWork ) for( nL2 = 0; nL2 < nStrLen; ++nL2, ++pWork )
......
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