Browse Source

Shaders: no need to have virtual destructor here.

Protected constructor and destructor is sufficient, AbstractVector
itself isn't meant to be deleted (via pointer).
pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
e5d0904417
  1. 6
      src/Shaders/AbstractVector.h

6
src/Shaders/AbstractVector.h

@ -51,11 +51,11 @@ template<UnsignedInt dimensions> class AbstractVector: public AbstractShaderProg
VectorTextureLayer = 16 /**< Layer for vector texture */
};
virtual ~AbstractVector() = 0;
protected:
explicit AbstractVector() = default;
~AbstractVector() = default;
};
template<UnsignedInt dimensions> inline AbstractVector<dimensions>::~AbstractVector() {}
/** @brief Base for two-dimensional text shaders */
typedef AbstractVector<2> AbstractVector2D;

Loading…
Cancel
Save