Skip to content

Commit

Permalink
avoid some more warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Apr 6, 2016
1 parent b791c33 commit e3d9697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/Component/Component.cpp
Expand Up @@ -1734,8 +1734,8 @@ void Component::resizeComponent(QPointF newPosition)
CoOrdinateSystem coOrdinateSystem = getCoOrdinateSystem();
if (coOrdinateSystem.getPreserveAspectRatio()) {
qreal factor = qMax(fabs(mXFactor), fabs(mYFactor));
mXFactor = mXFactor < 0 ? mXFactor = factor * -1 : mXFactor = factor;
mYFactor = mYFactor < 0 ? mYFactor = factor * -1 : mYFactor = factor;
mXFactor = mXFactor < 0 ? factor * -1 : factor;
mYFactor = mYFactor < 0 ? factor * -1 : factor;
}
// Apply the transformation to the temporary polygon using the new scaling factors
QPointF pivot = mPivotPoint - pos();
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/TLM/TLMCoSimulationDialog.cpp
Expand Up @@ -278,6 +278,7 @@ TLMCoSimulationOptions TLMCoSimulationDialog::createTLMCoSimulationOptions()
WSADATA ws;
int d;
d = WSAStartup(0x0101,&ws);
Q_UNUSED(d);
#endif
gethostname(myname, MAXHOSTNAME);
hp = gethostbyname((const char*) myname);
Expand Down

0 comments on commit e3d9697

Please sign in to comment.