Remove magic number and hard type enums in DrawBrokenView.h
- Remove currently present magic numbers - Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
This commit is contained in:
committed by
WandererFan
parent
79fdfb2cad
commit
e2446c4076
@@ -132,7 +132,7 @@ ViewProviderViewPart::ViewProviderViewPart()
|
||||
|
||||
// properties that affect BrokenViews
|
||||
BreakLineType.setEnums(DrawBrokenView::BreakTypeEnums);
|
||||
ADD_PROPERTY_TYPE(BreakLineType, (Preferences::BreakType()), bvgroup, App::Prop_None,
|
||||
ADD_PROPERTY_TYPE(BreakLineType, (static_cast<int>(Preferences::BreakType())), bvgroup, App::Prop_None,
|
||||
"Adjusts the type of break line depiction on broken views");
|
||||
ADD_PROPERTY_TYPE(BreakLineStyle, (Preferences::BreakLineStyle()), bvgroup, App::Prop_None,
|
||||
"Set break line style if applicable");
|
||||
|
||||
Reference in New Issue
Block a user