Skip to content
Snippets Groups Projects
Commit dda9df22 authored by con's avatar con
Browse files

Update tool chains correctly when paths are changed in options.

The tool chains' "equals" methods where out of date.

Reviewed-by: dt
Reviewed-by: Robert Loehning
parent c0352906
No related merge requests found
......@@ -79,7 +79,10 @@ QString GCCEToolChain::makeCommand() const
bool GCCEToolChain::equals(ToolChain *other) const
{
GCCEToolChain *otherGCCE = static_cast<GCCEToolChain *>(other);
return (other->type() == type()
&& m_deviceId == static_cast<GCCEToolChain *>(other)->m_deviceId
&& m_deviceName == static_cast<GCCEToolChain *>(other)->m_deviceName);
&& m_deviceId == otherGCCE->m_deviceId
&& m_deviceName == otherGCCE->m_deviceName
&& m_deviceRoot == otherGCCE->m_deviceRoot
&& m_gcceCommand == otherGCCE->m_gcceCommand);
}
......@@ -115,7 +115,10 @@ QString WINSCWToolChain::makeCommand() const
bool WINSCWToolChain::equals(ToolChain *other) const
{
WINSCWToolChain *otherWINSCW = static_cast<WINSCWToolChain *>(other);
return (other->type() == type()
&& m_deviceId == static_cast<WINSCWToolChain *>(other)->m_deviceId
&& m_deviceName == static_cast<WINSCWToolChain *>(other)->m_deviceName);
&& m_deviceId == otherWINSCW->m_deviceId
&& m_deviceName == otherWINSCW->m_deviceName
&& m_deviceRoot == otherWINSCW->m_deviceRoot
&& m_carbidePath == otherWINSCW->m_carbidePath);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment