Replace QByteArray::fromRawData
This commit is contained in:
parent
070b9403e4
commit
a6539ac96f
|
@ -326,9 +326,13 @@ void Updater::setOutputMessageMode(OutputMessageMode mode)
|
|||
void Updater::appendBuiltinGmicStdlib(QByteArray & array) const
|
||||
{
|
||||
gmic_image<char> stdlib_h = gmic::decompress_stdlib();
|
||||
QByteArray tmp = QByteArray::fromRawData(stdlib_h, (int)stdlib_h.size());
|
||||
tmp[tmp.size() - 1] = '\n';
|
||||
if (!stdlib_h.size() || (stdlib_h.size() == 1)) {
|
||||
Logger::error("Could not decompress gmic builtin stdlib");
|
||||
return;
|
||||
}
|
||||
QByteArray tmp(stdlib_h, int(stdlib_h.size() - 1));
|
||||
array.append(tmp);
|
||||
array.append('\n');
|
||||
}
|
||||
|
||||
} // namespace GmicQt
|
||||
|
|
Loading…
Reference in New Issue