Kaydet (Commit) d9a1d217 authored tarafından Miklos Vajna's avatar Miklos Vajna

coverity#704873 Unchecked dynamic_cast

Change-Id: I03580779ba69a71e51e9e4e1349fe2f5d77956d5
üst 051361a9
...@@ -417,7 +417,8 @@ const SwTOXBaseSection* SwDoc::InsertTableOf( sal_uLong nSttNd, sal_uLong nEndNd ...@@ -417,7 +417,8 @@ const SwTOXBaseSection* SwDoc::InsertTableOf( sal_uLong nSttNd, sal_uLong nEndNd
SwTOXBaseSection *const pNewSection( SwTOXBaseSection *const pNewSection(
dynamic_cast<SwTOXBaseSection*>(& pNewSectionNode->GetSection())); dynamic_cast<SwTOXBaseSection*>(& pNewSectionNode->GetSection()));
pNewSection->SetTOXName(sSectNm); // rTOX may have had no name... if (pNewSection)
pNewSection->SetTOXName(sSectNm); // rTOX may have had no name...
return pNewSection; return pNewSection;
} }
......
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