Commit d34534b5 authored by Johannes Zarl-Zierl's avatar Johannes Zarl-Zierl

Fix deprecation warning.

Note: I tested this by trying all kinds of special characters and
asserting equality to the old implementation. E.g. a category with name
'&/%$§&"?=äöüÖÄÜ' works and compatible.
parent 2eb1e794
......@@ -489,8 +489,8 @@ QString XMLDB::FileWriter::escape(const QString &str)
if (useCompressedFileFormat()) {
while ((pos = rx.indexIn(tmp, pos)) != -1) {
QString before = rx.cap(1);
QString after;
after.sprintf("_.%0X", rx.cap(1).data()->toLatin1());
QString after = QString::fromLatin1("_.");
after += QString::fromLocal8Bit(rx.cap(1).toLatin1().toHex());
tmp.replace(pos, before.length(), after);
pos += after.length();
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