Remove magic number and hard type enums in ArrowPropEnum.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:
@@ -166,7 +166,7 @@ void DlgPrefsTechDrawAnnotationImp::loadSettings()
|
||||
|
||||
ui->pcbBalloonArrow->onRestore();
|
||||
DrawGuiUtil::loadArrowBox(ui->pcbBalloonArrow);
|
||||
ui->pcbBalloonArrow->setCurrentIndex(prefBalloonArrow());
|
||||
ui->pcbBalloonArrow->setCurrentIndex(static_cast<int>(prefBalloonArrow()));
|
||||
|
||||
ui->cbEndCap->onRestore();
|
||||
|
||||
@@ -207,7 +207,7 @@ void DlgPrefsTechDrawAnnotationImp::changeEvent(QEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
int DlgPrefsTechDrawAnnotationImp::prefBalloonArrow() const
|
||||
TechDraw::ArrowType DlgPrefsTechDrawAnnotationImp::prefBalloonArrow() const
|
||||
{
|
||||
return Preferences::balloonArrow();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user