History

Create a standard function to init Hifi Apps

Atlante45 committed 8 years ago

Commit 277e5561 parent 80c0f2a27 files · +88 −160Browse files

Showing the changes to interface/src/Application.cpp (1 of 27 files). Show all

Unified · Split

interface/src/Application.cpp+2−5
@@ -575,10 +575,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext& context, const QSt · 574 unmodified lines
575575 QString logMessage = LogHandler::getInstance().printMessage((LogMsgType) type, context, message);
576576
577577 if (!logMessage.isEmpty()) {
578−#ifdef Q_OS_WIN
579− OutputDebugStringA(logMessage.toLocal8Bit().constData());
580− OutputDebugStringA("\n");
581−#elif defined Q_OS_ANDROID
578+#ifdef Q_OS_ANDROID
582579 const char * local=logMessage.toStdString().c_str();
583580 switch (type) {
584581 case QtDebugMsg:
@@ -599,7 +596,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext& context, const QSt · 14 unmodified lines
599596 abort();
600597 }
601598 #endif
602− qApp->getLogger()->addMessage(qPrintable(logMessage + "\n"));
599+ qApp->getLogger()->addMessage(qPrintable(logMessage));
603600 }
604601 }
605602