Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Schöps
kdevelop
Commits
cd436a04
Commit
cd436a04
authored
Jun 26, 2019
by
Friedrich W. H. Kossebau
Browse files
custommake: port foreach -> range-based for
parent
3abee5e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/custommake/custommakemanager.cpp
View file @
cd436a04
...
...
@@ -223,8 +223,8 @@ static bool isMakefile(const QString& fileName)
void
CustomMakeManager
::
createTargetItems
(
IProject
*
project
,
const
Path
&
path
,
ProjectBaseItem
*
parent
)
{
Q_ASSERT
(
isMakefile
(
path
.
lastPathSegment
()));
foreach
(
const
QString
&
target
,
parseCustomMakeFile
(
path
)
)
{
const
auto
target
s
=
parseCustomMakeFile
(
path
)
;
for
(
const
QString
&
target
:
targets
)
{
if
(
!
isValid
(
Path
(
parent
->
path
(),
target
),
false
,
project
))
{
continue
;
}
...
...
@@ -248,7 +248,8 @@ void CustomMakeManager::reloadMakefile(ProjectFileItem* file)
}
ProjectBaseItem
*
parent
=
file
->
parent
();
// remove the items that are Makefile targets
foreach
(
ProjectBaseItem
*
item
,
parent
->
children
()){
const
auto
items
=
parent
->
children
();
for
(
ProjectBaseItem
*
item
:
items
)
{
if
(
item
->
target
()){
delete
item
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment