diff options
| author | 2023-09-27 17:22:01 +0200 | |
|---|---|---|
| committer | 2023-10-18 10:26:35 +0200 | |
| commit | 2e402d15b5eb28cc70ce5783ebf6473bab97949a (patch) | |
| tree | a500cdefe65b9126e45e816b2cfa8705bbbf96ca /src/modules/objects | |
| parent | Port QDateTime::setTime_t() to setSecsSinceEpoch() (diff) | |
| download | KVIrc-2e402d15b5eb28cc70ce5783ebf6473bab97949a.tar.gz KVIrc-2e402d15b5eb28cc70ce5783ebf6473bab97949a.tar.bz2 KVIrc-2e402d15b5eb28cc70ce5783ebf6473bab97949a.zip | |
Qt6 is stricter when casting numericals and chars. Add an explicit cast/conversion to better digest them
cast
Diffstat (limited to 'src/modules/objects')
| -rw-r--r-- | src/modules/objects/qtftp/qftp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/objects/qtftp/qftp.cpp b/src/modules/objects/qtftp/qftp.cpp index 935bdb8b0..8fa31ef04 100644 --- a/src/modules/objects/qtftp/qftp.cpp +++ b/src/modules/objects/qtftp/qftp.cpp @@ -837,9 +837,9 @@ void QFtpPI::readyRead() } } QString endOfMultiLine; - endOfMultiLine[0] = '0' + replyCode[0]; - endOfMultiLine[1] = '0' + replyCode[1]; - endOfMultiLine[2] = '0' + replyCode[2]; + endOfMultiLine[0] = QString::number(replyCode[0])[0]; + endOfMultiLine[1] = QString::number(replyCode[1])[0]; + endOfMultiLine[2] = QString::number(replyCode[2])[0]; endOfMultiLine[3] = QLatin1Char(' '); QString lineCont(endOfMultiLine); lineCont[3] = QLatin1Char('-'); |
