Commit 485520d1 authored by Mike Kremer's avatar Mike Kremer

Fixed cppcheck issue: Changed implicit pointer cast to dynamic_cast() call.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19043 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0408fb35
...@@ -188,7 +188,7 @@ void OVMPropertyModel<MeshT>::mouseEvent(QMouseEvent* _event) ...@@ -188,7 +188,7 @@ void OVMPropertyModel<MeshT>::mouseEvent(QMouseEvent* _event)
ACG::Vec3d hit_point; ACG::Vec3d hit_point;
OVMPropertyVisualizer<MeshT>* viz = (OVMPropertyVisualizer<MeshT>*) propertyVisualizers[currentlySelectedIndices.first().row()]; OVMPropertyVisualizer<MeshT>* viz = dynamic_cast<OVMPropertyVisualizer<MeshT>*>(propertyVisualizers[currentlySelectedIndices.first().row()]);
unsigned int entityId = 0; unsigned int entityId = 0;
ACG::SceneGraph::PickTarget pickTarget; ACG::SceneGraph::PickTarget pickTarget;
...@@ -910,7 +910,7 @@ void OVMPropertyModel<MeshT>::addProperty(QString propName, QString friendlyType ...@@ -910,7 +910,7 @@ void OVMPropertyModel<MeshT>::addProperty(QString propName, QString friendlyType
template <typename MeshT> template <typename MeshT>
void OVMPropertyModel<MeshT>::initializeSupportedPropertyTypes() void OVMPropertyModel<MeshT>::initializeSupportedPropertyTypes()
{ {
#define INSERT_PROPTYPES(primitive) \ #define INSERT_PROPTYPES(primitive) \
supportedPropertyTypes.insert(proptype_##primitive##_bool); \ supportedPropertyTypes.insert(proptype_##primitive##_bool); \
supportedPropertyTypes.insert(proptype_##primitive##_int); \ supportedPropertyTypes.insert(proptype_##primitive##_int); \
...@@ -928,8 +928,8 @@ supportedPropertyTypes.insert(proptype_##primitive##_Vec3f); \ ...@@ -928,8 +928,8 @@ supportedPropertyTypes.insert(proptype_##primitive##_Vec3f); \
#undef INITIALIZE_PROPTYPES #undef INITIALIZE_PROPTYPES
} }
#endif /* ENABLE_OPENVOLUMEMESH_SUPPORT */ #endif /* ENABLE_OPENVOLUMEMESH_SUPPORT */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment