Commit 5ae77c65 authored by Tomaz Canabrava's avatar Tomaz Canabrava Committed by Daniel Agar

LogReplayLink: 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 819a3ac7
......@@ -33,7 +33,7 @@ LogReplayLinkConfiguration::LogReplayLinkConfiguration(LogReplayLinkConfiguratio
void LogReplayLinkConfiguration::copyFrom(LinkConfiguration *source)
{
LinkConfiguration::copyFrom(source);
LogReplayLinkConfiguration* ssource = dynamic_cast<LogReplayLinkConfiguration*>(source);
auto* ssource = qobject_cast<LogReplayLinkConfiguration*>(source);
if (ssource) {
_logFilename = ssource->logFilename();
} else {
......
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