Home
Phabricator
Search
Log In
Differential
D24489
Diff 67489
src/lib/io/kautosavefile.cpp
Changeset View
That's one long line, hard to read. Extract a const QByteArray encodedPath = QUrl::toPercentEncoding(....) ?
[pre-existing: I would personally call this QByteArray encodedDirectory and QString directory, to my eyes path is a full path including filename. At least it's ambiguous, unlike directory]
Also check if you can remove the .constData(). QString::fromLatin1(const QByteArray &str) was added in Qt 5.0, this code is probably older than that.