Browse Source

Platform: use delegating constructors.

pull/276/head
Vladimír Vondruš 12 years ago
parent
commit
098132f869
  1. 12
      src/Magnum/Platform/WindowlessCglApplication.cpp

12
src/Magnum/Platform/WindowlessCglApplication.cpp

@ -34,18 +34,14 @@
namespace Magnum { namespace Platform {
/** @todo Delegating constructor when support for GCC 4.6 is dropped */
#ifndef DOXYGEN_GENERATING_OUTPUT
WindowlessCglApplication::WindowlessCglApplication(const Arguments& arguments): WindowlessCglApplication(arguments, Configuration{}) {}
#endif
WindowlessCglApplication::WindowlessCglApplication(const Arguments&, const Configuration& configuration): c(nullptr) {
WindowlessCglApplication::WindowlessCglApplication(const Arguments& arguments, const Configuration& configuration): WindowlessCglApplication(arguments, nullptr) {
createContext(configuration);
}
#ifndef DOXYGEN_GENERATING_OUTPUT
WindowlessCglApplication::WindowlessCglApplication(const Arguments&): c(nullptr) {
createContext();
}
#endif
WindowlessCglApplication::WindowlessCglApplication(const Arguments&, std::nullptr_t): c(nullptr) {}
void WindowlessCglApplication::createContext() { createContext({}); }

Loading…
Cancel
Save