Browse Source

Disable instantiation of Trade::AbstractMaterialData.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
3861c91030
  1. 4
      src/Trade/AbstractMaterialData.h

4
src/Trade/AbstractMaterialData.h

@ -45,7 +45,7 @@ class AbstractMaterialData {
inline AbstractMaterialData(Type type): _type(type) {} inline AbstractMaterialData(Type type): _type(type) {}
/** @brief Destructor */ /** @brief Destructor */
virtual ~AbstractMaterialData() {} virtual ~AbstractMaterialData() = 0;
/** @brief Material type */ /** @brief Material type */
inline Type type() const { return _type; } inline Type type() const { return _type; }
@ -54,6 +54,8 @@ class AbstractMaterialData {
Type _type; Type _type;
}; };
inline AbstractMaterialData::~AbstractMaterialData() {}
}} }}
#endif #endif

Loading…
Cancel
Save