Commit 47d18f8d authored by Fushan Wen's avatar Fushan Wen 💬 Committed by Alexander Lohnau
Browse files

kcms/kfontinst: use `static_cast`

C-style pointer casting (CWE-398)
parent 09781e3b
Pipeline #185675 passed with stage
in 6 minutes and 8 seconds
......@@ -611,7 +611,7 @@ QModelIndex CFontList::parent(const QModelIndex &index) const
} else {
CFontItem *font = static_cast<CFontItem *>(index.internalPointer());
return createIndex(m_families.indexOf(((CFamilyItem *)font->parent())), 0, font->parent());
return createIndex(m_families.indexOf((static_cast<CFamilyItem *>(font->parent()))), 0, font->parent());
}
}
......
Supports Markdown
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