Files
qt-creator/tests/unit/unittest/compare-operators.h
Jarek Kobus 8b3aa900da Utils: Move SearchResultItem/Color into Utils
It's going to be reused inside FileSearch.

Change-Id: I8993d7158ff31c311c2283d32bc43465a8946a52
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-08 06:41:27 +00:00

26 lines
540 B
C++

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/searchresultitem.h>
namespace Utils {
namespace Search {
inline
bool operator==(const TextPosition first, class TextPosition second)
{
return first.line == second.line
&& first.column == second.column;
}
inline
bool operator==(const TextRange first, class TextRange second)
{
return first.begin == second.begin
&& first.end == second.end;
}
}
}