File indexing completed on 2024-04-28 05:43:53
0001 /* 0002 SPDX-FileCopyrightText: 2001-2004,2009 Otto Bruggeman <bruggie@gmail.com> 0003 SPDX-FileCopyrightText: 2001-2003 John Firebaugh <jfirebaugh@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KOMPAREDIFF2_DIFFHUNK_P_H 0009 #define KOMPAREDIFF2_DIFFHUNK_P_H 0010 0011 // lib 0012 #include "difference.h" 0013 #include "diffhunk.h" 0014 0015 namespace KompareDiff2 0016 { 0017 0018 class DiffHunkPrivate 0019 { 0020 public: 0021 DiffHunkPrivate(int sourceLine, int destinationLine, const QString &function, DiffHunk::Type type); 0022 0023 public: 0024 int sourceLine; 0025 int destinationLine; 0026 DifferenceList differences; 0027 QString function; 0028 DiffHunk::Type type; 0029 }; 0030 0031 inline DiffHunkPrivate::DiffHunkPrivate(int sourceLine, int destinationLine, const QString &function, DiffHunk::Type type) 0032 : sourceLine(sourceLine) 0033 , destinationLine(destinationLine) 0034 , function(function) 0035 , type(type) 0036 { 0037 } 0038 0039 } 0040 0041 #endif