forked from qt-creator/qt-creator
FileUtils: Replace FileNameList with an alias
The functionality in that class is covered by initializers and Utils::unique, so there is no need to keep a custom class. This way FileNameList plays way nicer with utils/algorithm.h. Change-Id: I8eeae6aca0558ecd998920c4fdfc5ea56bf75501 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -105,16 +105,7 @@ private:
|
||||
|
||||
QTCREATOR_UTILS_EXPORT QTextStream &operator<<(QTextStream &s, const FileName &fn);
|
||||
|
||||
class QTCREATOR_UTILS_EXPORT FileNameList : public QList<FileName>
|
||||
{
|
||||
public:
|
||||
inline FileNameList() { }
|
||||
inline explicit FileNameList(const FileName &i) { append(i); }
|
||||
inline FileNameList(const FileNameList &l) : QList<FileName>(l) { }
|
||||
inline FileNameList(const QList<FileName> &l) : QList<FileName>(l) { }
|
||||
|
||||
int removeDuplicates();
|
||||
};
|
||||
using FileNameList = QList<FileName>;
|
||||
|
||||
class QTCREATOR_UTILS_EXPORT FileUtils {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user