fix const correctness

This commit is contained in:
wmayer
2018-01-01 22:25:11 +01:00
parent 9cf42d3a87
commit 0b95e866b9
2 changed files with 2 additions and 2 deletions

View File

@@ -5839,7 +5839,7 @@ int SketchObject::changeConstraintsLocking(bool bLock)
return cntSuccess;
}
bool SketchObject::constraintHasExpression(int constrid)
bool SketchObject::constraintHasExpression(int constrid) const
{
App::ObjectIdentifier spath = this->Constraints.createPath(constrid);

View File

@@ -266,7 +266,7 @@ public:
double calculateConstraintError(int ConstrId);
int changeConstraintsLocking(bool bLock);
/// returns whether a given constraint has an associated expression or not
bool constraintHasExpression(int constrid);
bool constraintHasExpression(int constrid) const;
///porting functions
int port_reversedExternalArcs(bool justAnalyze);