Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/Compare.cpp')
-rw-r--r--src/core/Compare.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/core/Compare.cpp b/src/core/Compare.cpp
index 12e5029b7..5dccdd781 100644
--- a/src/core/Compare.cpp
+++ b/src/core/Compare.cpp
@@ -15,24 +15,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Compare.h"
-
-#include <QColor>
-
-bool operator<(const QColor& lhs, const QColor& rhs)
-{
- const QColor adaptedLhs = lhs.toCmyk();
- const QColor adaptedRhs = rhs.toCmyk();
- const int iCyan = compare(adaptedLhs.cyanF(), adaptedRhs.cyanF());
- if (iCyan != 0) {
- return iCyan;
- }
- const int iMagenta = compare(adaptedLhs.magentaF(), adaptedRhs.magentaF());
- if (iMagenta != 0) {
- return iMagenta;
- }
- const int iYellow = compare(adaptedLhs.yellowF(), adaptedRhs.yellowF());
- if (iYellow != 0) {
- return iYellow;
- }
- return compare(adaptedLhs.blackF(), adaptedRhs.blackF()) < 0;
-}