Skip to content

Commit

Permalink
QByteArray::append(const QString &str) a is deprecated
Browse files Browse the repository at this point in the history
The Unicode data was converted into 8-bit characters using
QString::toUtf8(), now it must be explicit.
  • Loading branch information
amtriathlon committed Jan 16, 2024
1 parent 21faf53 commit e95608e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cloud/CloudDBChart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ CloudDBChartClient::unmarshallAPIv1Object(QJsonObject* object, ChartAPIv1* chart
chart->ChartDef = object->value("chartDef").toString();
QString imageString = object->value("image").toString();
QByteArray ba;
ba.append(imageString);
ba.append(imageString.toUtf8());
chart->Image = QByteArray::fromBase64(ba);
chart->CreatorNick = object->value("creatorNick").toString();
chart->CreatorEmail = object->value("creatorEmail").toString();
Expand Down

0 comments on commit e95608e

Please sign in to comment.