Browse Source

GCC 4.5 compatibility: some explicit typing needed.

Vladimír Vondruš 13 years ago
parent
commit
d89e3a9a5a
  1. 3
      src/Platform/NaClApplication.cpp
  2. 3
      src/Platform/WindowlessNaClApplication.cpp

3
src/Platform/NaClApplication.cpp

@ -59,7 +59,8 @@ NaClApplication::NaClApplication(const Arguments& arguments, const Configuration
#ifndef DOXYGEN_GENERATING_OUTPUT
NaClApplication::NaClApplication(const Arguments& arguments): Instance(arguments), Graphics3DClient(this), MouseLock(this), c(nullptr) {
debugOutput = new ConsoleDebugOutput(this);
createContext({});
/* GCC 4.5 can't handle {} here (wtf) */
createContext(Configuration());
}
#endif

3
src/Platform/WindowlessNaClApplication.cpp

@ -58,7 +58,8 @@ WindowlessNaClApplication::WindowlessNaClApplication(const Arguments& arguments,
#ifndef DOXYGEN_GENERATING_OUTPUT
WindowlessNaClApplication::WindowlessNaClApplication(const Arguments& arguments): Instance(arguments), Graphics3DClient(this), c(nullptr) {
debugOutput = new ConsoleDebugOutput(this);
createContext({});
/* GCC 4.5 can't handle {} here (wtf) */
createContext(Configuration());
}
#endif

Loading…
Cancel
Save