KompareDiff2

diffmodellist.cpp
1/*
2SPDX-FileCopyrightText: 2004 Otto Bruggeman <bruggie@gmail.com>
3
4SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "diffmodellist.h"
8
9using namespace Diff2;
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:26
Diff2 namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:10:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.