From ecfcc30fee0a31266507bc850c50ff865727f256 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 30 Dec 2019 17:19:06 +0100 Subject: [PATCH] PartDesign: [skip ci] replace int with proper enum type --- src/Mod/PartDesign/App/ShapeBinder.cpp | 2 +- src/Mod/PartDesign/App/ShapeBinder.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index d96e0a4758..ff9559e75d 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -301,7 +301,7 @@ void SubShapeBinder::setupObject() { checkPropertyStatus(); } -void SubShapeBinder::update(int options) { +void SubShapeBinder::update(SubShapeBinder::UpdateOption options) { Part::TopoShape result; std::vector shapes; std::vector shapeMats; diff --git a/src/Mod/PartDesign/App/ShapeBinder.h b/src/Mod/PartDesign/App/ShapeBinder.h index 5d8aca2b32..d5c60e0b40 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.h +++ b/src/Mod/PartDesign/App/ShapeBinder.h @@ -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;