Some code cosmetics

This commit is contained in:
jrheinlaender 2013-09-16 20:38:39 +02:00 committed by Stefan Tröger
parent cdb49c28e5
commit 4623f3a7d3
6 changed files with 10 additions and 6 deletions

View File

@ -362,12 +362,13 @@ void Line::onChanged(const App::Property *prop)
if (p1 != NULL) delete p1;
if (p2 != NULL) delete p2;
if (line != NULL) delete line;
if (circle != NULL) delete circle;
}
Part::Datum::onChanged(prop);
}
const std::set<QString> Line::getHint()
const std::set<QString> Line::getHint() const
{
if (hints.find(refTypes) != hints.end())
return hints[refTypes];

View File

@ -45,7 +45,8 @@ public:
}
static void initHints();
const std::set<QString> getHint();
const std::set<QString> getHint() const;
const int offsetsAllowed() const;
Base::Vector3d getBasePoint() const;
Base::Vector3d getDirection() const;

View File

@ -358,7 +358,7 @@ void Plane::onChanged(const App::Property *prop)
}
const std::set<QString> Plane::getHint()
const std::set<QString> Plane::getHint() const
{
if (hints.find(refTypes) != hints.end())
return hints[refTypes];

View File

@ -44,7 +44,8 @@ public:
}
static void initHints();
const std::set<QString> getHint();
const std::set<QString> getHint() const;
const int offsetsAllowed() const;
Base::Vector3d getBasePoint();
Base::Vector3d getNormal();

View File

@ -362,7 +362,7 @@ Base::Vector3d Point::getPoint()
}
const std::set<QString> Point::getHint()
const std::set<QString> Point::getHint() const
{
if (hints.find(refTypes) != hints.end())
return hints[refTypes];

View File

@ -45,7 +45,8 @@ public:
}
static void initHints();
const std::set<QString> getHint();
const std::set<QString> getHint() const;
const int offsetsAllowed() const;
Base::Vector3d getPoint();