Skip to content

Commit

Permalink
Followup to #82
Browse files Browse the repository at this point in the history
fix build on qt5, use of stringbuilder
  • Loading branch information
Gemba authored Aug 10, 2024
1 parent cf7b0ef commit fbda47f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <QFile>
#include <QProcess>
#include <QRegularExpression>
#include <QSet>
#include <QStringBuilder>
#include <QXmlStreamAttributes>
#include <QXmlStreamReader>
Expand Down Expand Up @@ -84,7 +85,7 @@ bool Cache::createFolders(const QString &scraper) {
}

bool Cache::read() {
QFile quickIdFile(cacheDir.absolutePath() + "/quickid.xml");
QFile quickIdFile(cacheDir.absolutePath() % "/quickid.xml");
if (quickIdFile.open(QIODevice::ReadOnly)) {
printf("Reading and parsing quick id xml, please wait... ");
fflush(stdout);
Expand All @@ -111,8 +112,7 @@ bool Cache::read() {
printf("\033[1;32mDone!\033[0m\n");
}


QFile cacheFile(cacheDir.absolutePath() + "/db.xml");
QFile cacheFile(cacheDir.absolutePath() % "/db.xml");
if (cacheFile.open(QIODevice::ReadOnly)) {
printf("Building file lookup cache, please wait... ");
fflush(stdout);
Expand Down Expand Up @@ -179,7 +179,7 @@ bool Cache::read() {
}
resource.value = xml.readElementText();
if (binTypes().contains(resource.type) &&
!fileEntries.contains(cacheDir.absolutePath() + "/" +
!fileEntries.contains(cacheDir.absolutePath() % "/" %
resource.value)) {
printf("Source file '%s' missing, skipping entry...\n",
resource.value.toStdString().c_str());
Expand Down Expand Up @@ -1991,4 +1991,4 @@ bool Cache::removeMediaFile(Resource &res, const char *msg) {
return false;
}
return true;
}
}

0 comments on commit fbda47f

Please sign in to comment.