mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
Replaced deprecated QTextStream::setCodec by QTextStream::setEncoding
This commit is contained in:
parent
47916ee8c0
commit
6652d7f4f8
7 changed files with 30 additions and 0 deletions
|
|
@ -1419,7 +1419,11 @@ bool NewFriendList::exportFriendlist(QString &fileName)
|
|||
root.appendChild(groups);
|
||||
|
||||
QTextStream ts(&file);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK (6, 0, 0)
|
||||
ts.setEncoding(QStringConverter::Utf8);
|
||||
#else
|
||||
ts.setCodec("UTF-8");
|
||||
#endif
|
||||
ts << doc.toString();
|
||||
file.close();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue