Browse Source

GCC 4.5 compatibility: nullptr-related issues.

Vladimír Vondruš 13 years ago
parent
commit
bacad74ae1
  1. 7
      src/Platform/GlxApplication.cpp
  2. 7
      src/Platform/XEglApplication.cpp

7
src/Platform/GlxApplication.cpp

@ -30,6 +30,11 @@ namespace Magnum { namespace Platform {
GlxApplication::GlxApplication(const Arguments& arguments, const Configuration& configuration): AbstractXApplication(new Implementation::GlxContextHandler, arguments, configuration) {}
GlxApplication::GlxApplication(const Arguments& arguments, std::nullptr_t): AbstractXApplication(new Implementation::GlxContextHandler, arguments, nullptr) {}
#ifndef CORRADE_GCC45_COMPATIBILITY
GlxApplication::GlxApplication(const Arguments& arguments, std::nullptr_t)
#else
GlxApplication::GlxApplication(const Arguments& arguments, void*)
#endif
: AbstractXApplication(new Implementation::GlxContextHandler, arguments, nullptr) {}
}}

7
src/Platform/XEglApplication.cpp

@ -30,6 +30,11 @@ namespace Magnum { namespace Platform {
XEglApplication::XEglApplication(const Arguments& arguments, const Configuration& configuration): AbstractXApplication(new Implementation::EglContextHandler, arguments, configuration) {}
XEglApplication::XEglApplication(const Arguments& arguments, std::nullptr_t): AbstractXApplication(new Implementation::EglContextHandler, arguments, nullptr) {}
#ifndef CORRADE_GCC45_COMPATIBILITY
XEglApplication::XEglApplication(const Arguments& arguments, std::nullptr_t)
#else
XEglApplication::XEglApplication(const Arguments& arguments, void*)
#endif
: AbstractXApplication(new Implementation::EglContextHandler, arguments, nullptr) {}
}}

Loading…
Cancel
Save