Skip to content

Commit

Permalink
+ fix const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jun 15, 2015
1 parent ec5f3b2 commit 788fadf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Sketcher/App/Sketch.h
Expand Up @@ -316,8 +316,8 @@ class SketcherExport Sketch :public Base::Persistence
double calculateConstraintError(int icstr) { return GCSsys.calculateConstraintErrorByTag(icstr);}

/// Returns the size of the Geometry
int getGeometrySize(void) {return Geoms.size();}
int getGeometrySize(void) const {return Geoms.size();}

enum GeoType {
None = 0,
Point = 1, // 1 Point(start), 2 Parameters(x,y)
Expand Down
12 changes: 6 additions & 6 deletions src/Mod/Sketcher/App/SketchObject.h
Expand Up @@ -209,20 +209,20 @@ class SketcherExport SketchObject : public Part::Part2DObject
void validateConstraints();

/// gets DoF of last solver execution
int getLastDoF() {return lastDoF;}
int getLastDoF() const {return lastDoF;}
/// gets HasConflicts status of last solver execution
bool getLastHasConflicts() {return lastHasConflict;}
bool getLastHasConflicts() const {return lastHasConflict;}
/// gets HasRedundancies status of last solver execution
bool getLastHasRedundancies() {return lastHasRedundancies;}
bool getLastHasRedundancies() const {return lastHasRedundancies;}
/// gets solver status of last solver execution
int getLastSolverStatus() {return lastSolverStatus;}
int getLastSolverStatus() const {return lastSolverStatus;}
/// gets solver SolveTime of last solver execution
float getLastSolveTime() {return lastSolveTime;}
float getLastSolveTime() const {return lastSolveTime;}
/// gets the conflicting constraints of the last solver execution
const std::vector<int> &getLastConflicting(void) const { return lastConflicting; }
/// gets the redundant constraints of last solver execution
const std::vector<int> &getLastRedundant(void) const { return lastRedundant; }

Sketch &getSolvedSketch(void) {return solvedSketch;}

protected:
Expand Down

0 comments on commit 788fadf

Please sign in to comment.