Browse Source

Platform: don't use deprecated API in AndroidApplication.

pull/132/head
Vladimír Vondruš 10 years ago
parent
commit
9e7c5656c6
  1. 12
      src/Magnum/Platform/AndroidApplication.cpp

12
src/Magnum/Platform/AndroidApplication.cpp

@ -40,18 +40,18 @@ struct AndroidApplication::LogOutput {
Utility::AndroidLogStreamBuffer debugBuffer, warningBuffer, errorBuffer;
std::ostream debugStream, warningStream, errorStream;
Debug redirectDebug;
Warning redirectWarning;
Error redirectError;
};
AndroidApplication::LogOutput::LogOutput():
debugBuffer(Utility::AndroidLogStreamBuffer::LogPriority::Info, "magnum"),
warningBuffer(Utility::AndroidLogStreamBuffer::LogPriority::Warning, "magnum"),
errorBuffer(Utility::AndroidLogStreamBuffer::LogPriority::Error, "magnum"),
debugStream(&debugBuffer), warningStream(&warningBuffer), errorStream(&errorBuffer)
{
Debug::setOutput(&debugStream);
Warning::setOutput(&warningStream);
Error::setOutput(&errorStream);
}
debugStream(&debugBuffer), warningStream(&warningBuffer), errorStream(&errorBuffer),
redirectDebug{&debugStream}, redirectWarning{&warningStream}, redirectError{&errorStream}
{}
#ifndef DOXYGEN_GENERATING_OUTPUT
AndroidApplication::AndroidApplication(const Arguments& arguments): AndroidApplication{arguments, Configuration{}} {}

Loading…
Cancel
Save