From 9e7c5656c6119bd4c79b02d90b2e2303cc68f8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 17 Jan 2016 18:02:18 +0100 Subject: [PATCH] Platform: don't use deprecated API in AndroidApplication. --- src/Magnum/Platform/AndroidApplication.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Magnum/Platform/AndroidApplication.cpp b/src/Magnum/Platform/AndroidApplication.cpp index e1e7b0697..fc72af7ed 100644 --- a/src/Magnum/Platform/AndroidApplication.cpp +++ b/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{}} {}