Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
partons
core
partons-example
Commits
abe3483e
Commit
abe3483e
authored
Jul 27, 2017
by
Nabil Chouika
Browse files
no need for push_back, it's a static array...
parent
e64de12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
abe3483e
...
...
@@ -16,10 +16,10 @@ std::vector<std::string> parseArguments(int argc, char** argv) {
"Missing argument, please provide one or more than one XML scenario file."
);
}
std
::
vector
<
std
::
string
>
xmlScenarios
;
std
::
vector
<
std
::
string
>
xmlScenarios
(
argc
-
1
)
;
for
(
unsigned
int
i
=
1
;
i
!=
argc
;
i
++
)
{
xmlScenarios
.
push_back
(
argv
[
i
]
)
;
for
(
unsigned
int
i
=
1
;
i
<
argc
;
i
++
)
{
xmlScenarios
[
i
-
1
]
=
argv
[
i
];
}
return
xmlScenarios
;
...
...
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