Fix implicit conversions from QByteArray

This commit is contained in:
Ilya Fedin
2021-02-19 14:09:01 +04:00
committed by John Preston
parent 22cbf32a14
commit bbf49b024a
11 changed files with 60 additions and 56 deletions
@@ -642,7 +642,10 @@ std::pair<QString, QSize> WriteImageThumb(
? largePath.mid(0, firstDot) + postfix + largePath.mid(firstDot)
: largePath + postfix;
const auto result = Output::File::PrepareRelativePath(basePath, thumb);
if (!image.save(basePath + result, finalFormat, finalQuality)) {
if (!image.save(
basePath + result,
finalFormat.constData(),
finalQuality)) {
return {};
}
return { result, finalSize };