mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Don't use removed QTextStream::setCodec()
QTextStream encodes as UTF-8 by default.
This commit is contained in:
@@ -126,7 +126,9 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
|||||||
if (!m_logFile.isOpen()) return;
|
if (!m_logFile.isOpen()) return;
|
||||||
|
|
||||||
QTextStream stream(&m_logFile);
|
QTextStream stream(&m_logFile);
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||||
stream.setCodec("UTF-8");
|
stream.setCodec("UTF-8");
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (msg.type)
|
switch (msg.type)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user