forked from qt-creator/qt-creator
Fix filesearch test.
Clang complained that the operator== was not defined in Utils namespace. Change-Id: I64853ddf3a081991cfb276b3be3a243fda87a740 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
namespace Utils {
|
||||||
bool operator==(const Utils::FileSearchResult &r1, const Utils::FileSearchResult &r2)
|
bool operator==(const Utils::FileSearchResult &r1, const Utils::FileSearchResult &r2)
|
||||||
{
|
{
|
||||||
return r1.fileName == r2.fileName
|
return r1.fileName == r2.fileName
|
||||||
@@ -41,7 +41,7 @@ bool operator==(const Utils::FileSearchResult &r1, const Utils::FileSearchResult
|
|||||||
&& r1.matchLength == r2.matchLength
|
&& r1.matchLength == r2.matchLength
|
||||||
&& r1.regexpCapturedTexts == r2.regexpCapturedTexts;
|
&& r1.regexpCapturedTexts == r2.regexpCapturedTexts;
|
||||||
}
|
}
|
||||||
QT_END_NAMESPACE
|
} // Utils
|
||||||
|
|
||||||
class tst_FileSearch : public QObject
|
class tst_FileSearch : public QObject
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user