Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Guillaume Baulieu
agapro
Commits
68f1b1ef
Commit
68f1b1ef
authored
Jul 18, 2018
by
Guillaume Baulieu
Browse files
Add a destructor to the ConfReader class
parent
28d1274a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
common/ConfReader.h
common/ConfReader.h
+11
-0
No files found.
common/ConfReader.h
View file @
68f1b1ef
...
...
@@ -234,6 +234,17 @@ public:
defaultRequired
=
-
1
;
// by default, all parameters of a command must be given
smartDefaults
=
inf
;
// single-bool keywords default to true unless they start with No/Dont
}
~
ConfReader
(){
for
(
unsigned
int
i
=
0
;
i
<
vcom
.
size
();
++
i
){
for
(
unsigned
int
j
=
0
;
j
<
vcom
[
i
]
->
saved
.
size
();
++
j
){
delete
[]
vcom
[
i
]
->
saved
[
j
];
}
for
(
unsigned
int
j
=
0
;
j
<
vcom
[
i
]
->
vpar
.
size
();
++
j
){
delete
vcom
[
i
]
->
vpar
[
j
];
}
delete
vcom
[
i
];
}
}
int
Size
()
const
{
return
int
(
vcom
.
size
());}
int
Find
(
const
std
::
string
&
name
)
const
;
void
Show
(
const
std
::
string
&
className
=
""
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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