Browse Source

Don't instanitate/declare structs as classes.

Clang warned about that.
pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
c339063566
  1. 6
      src/AbstractTexture.cpp
  2. 2
      src/Context.h
  3. 2
      src/Magnum.h

6
src/AbstractTexture.cpp

@ -458,9 +458,9 @@ namespace Implementation {
return nullptr;
}
template class ImageHelper<BufferImage1D>;
template class ImageHelper<BufferImage2D>;
template class ImageHelper<BufferImage3D>;
template struct ImageHelper<BufferImage1D>;
template struct ImageHelper<BufferImage2D>;
template struct ImageHelper<BufferImage3D>;
}
#endif

2
src/Context.h

@ -30,7 +30,7 @@ namespace Magnum {
#ifndef DOXYGEN_GENERATING_OUTPUT
namespace Implementation {
class State;
struct State;
}
#endif

2
src/Magnum.h

@ -53,7 +53,7 @@ namespace Magnum {
namespace Math {
template<class T> constexpr T deg(T value);
template<class T> constexpr T rad(T value);
template<class T> class Constants;
template<class T> struct Constants;
}
/* Bring debugging facility from Corrade::Utility namespace */

Loading…
Cancel
Save