Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit b09352e

Browse files
committed
fromAscii is deprecated. Use fromLatin1
1 parent 5ca6aaf commit b09352e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OscapScannerBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ bool OscapScannerBase::tryToReadStdOutChar(QProcess& process)
333333
{
334334
// When fetching remote content, openscap will inform scap-workbench about
335335
// resources being downloaded. Keep any colon found in URL of file being downloaded.
336-
mReadBuffer.append(QChar::fromAscii(readChar));
336+
mReadBuffer.append(QChar::fromLatin1(readChar));
337337
}
338338
break;
339339

@@ -405,7 +405,7 @@ bool OscapScannerBase::tryToReadStdOutChar(QProcess& process)
405405
{
406406
// we know for sure that buffer[0] can only contain ASCII characters
407407
// (IDs and special keywords regarding rule status)
408-
mReadBuffer.append(QChar::fromAscii(readChar));
408+
mReadBuffer.append(QChar::fromLatin1(readChar));
409409
}
410410

411411
return true;

0 commit comments

Comments
 (0)