gddebug minor changes

This commit is contained in:
xiaoyifang 2022-04-03 09:45:09 +08:00
parent 8b9544bc17
commit 498efdf9b7

View file

@ -3,6 +3,7 @@
#include <QString>
#include "gddebug.hh"
#include <QDebug>
#if(QT_VERSION >= QT_VERSION_CHECK(6,0,0))
#include <QtCore5Compat/QTextCodec>
#else
@ -27,7 +28,7 @@ QTextCodec *localeCodec = 0;
QTextCodec::setCodecForLocale( utf8Codec );
}
qWarning( "%s", QString().vasprintf( msg, ap ).toUtf8().data() );
qWarning() << QString().vasprintf( msg, ap );
if( logFilePtr && logFilePtr->isOpen() )
{
@ -52,7 +53,7 @@ QTextCodec *localeCodec = 0;
QTextCodec::setCodecForLocale( utf8Codec );
}
qDebug( "%s", QString().vasprintf( msg, ap ).toUtf8().data() );
qDebug()<< QString().vasprintf( msg, ap );
if( logFilePtr && logFilePtr->isOpen() )
{