Cppcheck++.
--HG-- branch : develop
This commit is contained in:
parent
c396e67700
commit
0fbc4b5fc8
|
@ -68,7 +68,7 @@ private:
|
|||
static qreal* AddVariable(const QString &a_szName, void *a_pUserData);
|
||||
void SetSepForEval();
|
||||
void SetSepForTr(bool fromUser);
|
||||
void RemoveAll(QMap<int, QString> &map, const QString &val);
|
||||
static void RemoveAll(QMap<int, QString> &map, const QString &val);
|
||||
};
|
||||
|
||||
#endif // CALCULATOR_H
|
||||
|
|
|
@ -90,8 +90,7 @@ QVector<QPointF> VAbstractCurve::IntersectLine(const QLineF &line) const
|
|||
for ( qint32 i = 0; i < points.count()-1; ++i )
|
||||
{
|
||||
QPointF crosPoint;
|
||||
QLineF::IntersectType type = QLineF::NoIntersection;
|
||||
type = line.intersect(QLineF ( points.at(i), points.at(i+1)), &crosPoint);
|
||||
QLineF::IntersectType type = line.intersect(QLineF ( points.at(i), points.at(i+1)), &crosPoint);
|
||||
if ( type == QLineF::BoundedIntersection )
|
||||
{
|
||||
intersections.append(crosPoint);
|
||||
|
|
Loading…
Reference in New Issue
Block a user