Browse Source

GCC 4.5 compatibility: some explicit typing needed.

Vladimír Vondruš 13 years ago
parent
commit
c610bc15b4
  1. 3
      src/Platform/AbstractXApplication.cpp
  2. 3
      src/Platform/GlutApplication.cpp
  3. 3
      src/Platform/Sdl2Application.cpp
  4. 3
      src/Platform/magnum-info.cpp

3
src/Platform/AbstractXApplication.cpp

@ -43,7 +43,8 @@ AbstractXApplication::AbstractXApplication(AbstractContextHandler<Display*, Visu
#ifndef DOXYGEN_GENERATING_OUTPUT
AbstractXApplication::AbstractXApplication(AbstractContextHandler<Display*, VisualID, Window>* contextHandler, const Arguments&): contextHandler(contextHandler), c(nullptr), flags(Flag::Redraw) {
createContext({});
/* GCC 4.5 can't handle {} here (wtf) */
createContext(Configuration());
}
#endif

3
src/Platform/GlutApplication.cpp

@ -40,7 +40,8 @@ GlutApplication::GlutApplication(const Arguments& arguments, const Configuration
#ifndef DOXYGEN_GENERATING_OUTPUT
GlutApplication::GlutApplication(const Arguments& arguments): c(nullptr) {
initialize(arguments.argc, arguments.argv);
createContext({});
/* GCC 4.5 can't handle {} here (wtf) */
createContext(Configuration());
}
#endif

3
src/Platform/Sdl2Application.cpp

@ -56,7 +56,8 @@ Sdl2Application::Sdl2Application(const Arguments&, const Configuration& configur
#ifndef DOXYGEN_GENERATING_OUTPUT
Sdl2Application::Sdl2Application(const Arguments&): context(nullptr), flags(Flag::Redraw) {
initialize();
createContext({});
/* GCC 4.5 can't handle {} here (wtf) */
createContext(Configuration());
}
#endif

3
src/Platform/magnum-info.cpp

@ -54,7 +54,8 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
/* Create context after parsing arguments, so the help can be displayed
without creating context */
createContext({});
/* GCC 4.5 can't handle {} here (wtf) */
createContext(Configuration());
Context* c = Context::current();
/* Pass debug output as messages to JavaScript */

Loading…
Cancel
Save