Skip to content

Commit

Permalink
qt6: Convert QRegExp to QRegularExpression in remotefile.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Jun 5, 2020
1 parent cffbc69 commit f951d74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mythtv/libs/libmythbase/remotefile.cpp
Expand Up @@ -3,6 +3,7 @@ using namespace std;

#include <QFile>
#include <QFileInfo>
#include <QRegularExpression>
#include <QUrl>

// POSIX C headers
Expand Down Expand Up @@ -1297,7 +1298,7 @@ QString RemoteFile::FindFile(const QString& filename, const QString& host,

/**
* \brief Search all BE's for files in the give storage group
* \param filename the partial path and filename to look for or regex
* \param filename the partial path and filename to look for or regular espression (QRegularExpression)
* \param host search this host first if given or default to the master BE if empty
* \param storageGroup the name of the storage group to search
* \param useRegex if true filename is assumed to be a regex expression of files to find
Expand Down Expand Up @@ -1344,7 +1345,7 @@ QStringList RemoteFile::FindFileList(const QString& filename, const QString& hos
.arg(x).arg(files[x]));
}

QStringList filteredFiles = files.filter(QRegExp(fi.fileName()));
QStringList filteredFiles = files.filter(QRegularExpression(fi.fileName()));
for (int x = 0; x < filteredFiles.size(); x++)
{
strList << MythCoreContext::GenMythURL(gCoreContext->GetHostName(),
Expand Down

0 comments on commit f951d74

Please sign in to comment.