Remove magic number and hard type enums in BalloonPropEnum.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:
@@ -33,14 +33,16 @@
|
||||
namespace TechDraw
|
||||
{
|
||||
|
||||
enum BalloonType { Circular = 0,
|
||||
None,
|
||||
Triangle,
|
||||
Inspection,
|
||||
Hexagon,
|
||||
Square,
|
||||
Rectangle,
|
||||
Line};
|
||||
enum class BalloonType {
|
||||
Circular = 0,
|
||||
None,
|
||||
Triangle,
|
||||
Inspection,
|
||||
Hexagon,
|
||||
Square,
|
||||
Rectangle,
|
||||
Line
|
||||
};
|
||||
|
||||
class TechDrawExport BalloonPropEnum {
|
||||
Q_DECLARE_TR_FUNCTIONS(TechDraw::BalloonPropEnum)
|
||||
|
||||
Reference in New Issue
Block a user