QFileSelectorPrivate: don't pass QChar by const reference
Change-Id: I8aeb31bf7ad7160636379f3248e327e158016526 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>bb10
parent
748e759df8
commit
c253e65429
|
|
@ -246,7 +246,8 @@ QUrl QFileSelector::select(const QUrl &filePath) const
|
|||
return ret;
|
||||
}
|
||||
|
||||
QString QFileSelectorPrivate::selectionHelper(const QString &path, const QString &fileName, const QStringList &selectors, const QChar &indicator)
|
||||
QString QFileSelectorPrivate::selectionHelper(const QString &path, const QString &fileName,
|
||||
const QStringList &selectors, QChar indicator)
|
||||
{
|
||||
/* selectionHelper does a depth-first search of possible selected files. Because there is strict
|
||||
selector ordering in the API, we can stop checking as soon as we find the file in a directory
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ public:
|
|||
static QStringList platformSelectors();
|
||||
static void addStatics(const QStringList &); //For loading GUI statics from other Qt modules
|
||||
static QString selectionHelper(const QString &path, const QString &fileName,
|
||||
const QStringList &selectors, const QChar &indicator = u'+');
|
||||
const QStringList &selectors, QChar indicator = u'+');
|
||||
QFileSelectorPrivate();
|
||||
QString select(const QString &filePath) const;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue