mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Format
This commit is contained in:
@ -28,7 +28,7 @@ QString readSvg(const QString &resourcePath)
|
||||
QFile in(resourcePath);
|
||||
if (!in.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
qWarning() << "Failed to open SVG resource:" << resourcePath;
|
||||
return {};
|
||||
return { };
|
||||
}
|
||||
|
||||
QString svg = QString::fromUtf8(in.readAll());
|
||||
@ -53,7 +53,7 @@ QString writeSvg(const QString &svg, const QString &resourcePath, const QString
|
||||
QFile out(outPath);
|
||||
if (!out.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate)) {
|
||||
qWarning() << "Failed to write SVG:" << outPath;
|
||||
return {};
|
||||
return { };
|
||||
}
|
||||
|
||||
out.write(svg.toUtf8());
|
||||
|
||||
Reference in New Issue
Block a user