Toggle navigation
Sign in
taskrambler
/
libtrdata
·
Commits
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Forks
Snippets
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
859ce4011442598b613e67dc61f9df678f244b89
Authored by
Georg Hopp
2015-11-01 01:23:54 +0100
1 parent
b11c17ed
Use iterator if possible
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
src/set/set.c
src/set/set.c
View file @
859ce40
...
...
@@ -47,10 +47,8 @@ setDtor(void * _this)
47
47
size_t
i
;
48
48
49
49
if
(
this
->
free_msgs
)
{
50
-
for
(
i
=
0
;
i
<
this
->
used
;
i
++
)
{
51
-
if
(
this
->
data
[
i
])
{
52
-
TR_delete
(
this
->
data
[
i
]);
53
-
}
50
+
TR_iterableForeach
(
this
)
{
51
+
TR_delete
(
this
->
data
[
i
]);
54
52
}
55
53
}
56
54
...
...
Please
register
or
login
to post a comment