PartDesign: [skip ci] replace int with proper enum type

This commit is contained in:
wmayer
2019-12-30 17:19:06 +01:00
parent c9f6e5c37f
commit 977f5c28f2
2 changed files with 3 additions and 2 deletions

View File

@@ -301,7 +301,7 @@ void SubShapeBinder::setupObject() {
checkPropertyStatus();
}
void SubShapeBinder::update(int options) {
void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
Part::TopoShape result;
std::vector<Part ::TopoShape> shapes;
std::vector<const Base::Matrix4D*> shapeMats;

View File

@@ -94,10 +94,11 @@ public:
App::PropertyInteger _Version;
enum UpdateOption {
UpdateNone = 0,
UpdateInit = 1,
UpdateForced = 2,
};
void update(int options=0);
void update(UpdateOption options = UpdateNone);
virtual int canLoadPartial() const override {
return PartialLoad.getValue()?1:0;