Commit ae8f94a7 authored by Tomaz Canabrava's avatar Tomaz Canabrava Committed by Daniel Agar

TaisyncManager: use qobject_cast instead of dynamic_cast

qobject_cast is times faster dynamic_cast for objects that
inherit QObject. also, use auto keyword to not duplicate
class names.
parent 3f43bb5e
......@@ -318,7 +318,7 @@ TaisyncManager::_setEnabled()
TaisyncManager::_restoreVideoSettings(Fact* setting)
SettingsFact* pFact = dynamic_cast<SettingsFact*>(setting);
auto* pFact = qobject_cast<SettingsFact*>(setting);
if(pFact) {
pFact->setVisible(qgcApp()->toolbox()->corePlugin()->adjustSettingMetaData(VideoSettings::settingsGroup, *setting->metaData()));
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