KompareDiff2

diffmodellist.cpp
1/*
2 SPDX-FileCopyrightText: 2004 Otto Bruggeman <bruggie@gmail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "diffmodellist.h"
8
9using namespace KompareDiff2;
10
11static bool diffModelCompare(DiffModel *model1, DiffModel *model2)
12{
13 return *model1 < *model2;
14}
15
16void DiffModelList::sort()
17{
18 std::sort(begin(), end(), diffModelCompare);
19}
A model describing the differences between two files.
Definition diffmodel.h:31
KompareDiff2 namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.