-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlisourcelist.cpp
More file actions
39 lines (35 loc) · 1.1 KB
/
Copy pathlisourcelist.cpp
File metadata and controls
39 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/****************************************************************************
**
** Copyright (C) 2015 Mikhail Y. Zvyozdochkin aka DarkHobbit
** Contact: pub@zvyozdochkin.ru
**
** This file is part of the LInvert utility for Qt
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public License
** version 2.1 or version 3 as published by the Free Software Foundation.
** Please review the ** following information to ensure the
** GNU Lesser General Public License requirements will be met:
** https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
****************************************************************************/
#include "lisourcelist.h"
LISourceList::LISourceList()
{
}
LISourceList::~LISourceList()
{
for (int i=0; i<count(); i++)
delete at(i);
}
LISourceFile* LISourceList::findByFileName(const QString& str)
{
LISourceFile* srcFile = 0;
for (int i=0; i<count(); i++)
if (at(i)->isSameFile(str)) {
srcFile = at(i);
break;
}
return srcFile;
}