Commit e269dc41 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Remove obsolete Qt API calls from libs/psd

parent 1bdc8b59
......@@ -43,7 +43,7 @@ namespace KisAslReaderUtils {
struct KRITAPSD_EXPORT ASLParseException : public std::runtime_error
{
ASLParseException(const QString &msg)
: std::runtime_error(msg.toAscii().data())
: std::runtime_error(msg.toLatin1().data())
{
}
};
......
......@@ -152,7 +152,7 @@ void writeFileImpl(QIODevice *device, const QDomDocument &doc)
{
QString signature("8BSL");
if (!device->write(signature.toAscii().data(), 4)) {
if (!device->write(signature.toLatin1().data(), 4)) {
throw ASLWriteException("Failed to write ASL signature");
}
}
......
......@@ -60,7 +60,7 @@ void writeVarString(const QString &value, QIODevice *device)
quint32 lenTag = value.length() != 4 ? value.length() : 0;
SAFE_WRITE_EX(device, lenTag);
if (!device->write(value.toAscii().data(), value.length())) {
if (!device->write(value.toLatin1().data(), value.length())) {
warnKrita << "WARNING: ASL: Failed to write ASL string" << ppVar(value);
return;
}
......@@ -71,7 +71,7 @@ void writePascalString(const QString &value, QIODevice *device)
quint8 lenTag = value.length();
SAFE_WRITE_EX(device, lenTag);
if (!device->write(value.toAscii().data(), value.length())) {
if (!device->write(value.toLatin1().data(), value.length())) {
warnKrita << "WARNING: ASL: Failed to write ASL string" << ppVar(value);
return;
}
......@@ -81,7 +81,7 @@ void writeFixedString(const QString &value, QIODevice *device)
{
KIS_ASSERT_RECOVER_RETURN(value.length() == 4);
if (!device->write(value.toAscii().data(), value.length())) {
if (!device->write(value.toLatin1().data(), value.length())) {
warnKrita << "WARNING: ASL: Failed to write ASL string" << ppVar(value);
return;
}
......
......@@ -37,7 +37,7 @@ namespace KisAslWriterUtils {
struct KRITAPSD_EXPORT ASLWriteException : public std::runtime_error
{
ASLWriteException(const QString &msg)
: std::runtime_error(msg.toAscii().data())
: std::runtime_error(msg.toLatin1().data())
{
}
};
......
......@@ -343,7 +343,7 @@ bool tryParseDescriptor(const QDomElement &el,
}
QDomCDATASection dataSection = dataNode.toCDATASection();
QByteArray data = dataSection.data().toAscii();
QByteArray data = dataSection.data().toLatin1();
data = QByteArray::fromBase64(data);
data = qUncompress(data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment