mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
Use SHAPE_TYPE_NONE instead of (ShapeType)0 in ShapeInfo.cpp
This commit is contained in:
parent
a1202d9bd5
commit
4ca9899000
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ const float MIN_HALF_EXTENT = 0.005f; // 0.5 cm
|
||||||
|
|
||||||
QString ShapeInfo::getNameForShapeType(ShapeType type) {
|
QString ShapeInfo::getNameForShapeType(ShapeType type) {
|
||||||
if (((int)type <= 0) || ((int)type >= (int)SHAPETYPE_NAME_COUNT)) {
|
if (((int)type <= 0) || ((int)type >= (int)SHAPETYPE_NAME_COUNT)) {
|
||||||
type = (ShapeType)0;
|
type = SHAPE_TYPE_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return shapeTypeNames[(int)type];
|
return shapeTypeNames[(int)type];
|
||||||
|
@ -82,7 +82,7 @@ ShapeType ShapeInfo::getShapeTypeForName(QString string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (ShapeType)0;
|
return SHAPE_TYPE_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShapeInfo::clear() {
|
void ShapeInfo::clear() {
|
||||||
|
|
Loading…
Reference in a new issue