Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
systemc-clang
Commits
d6f7d7ec
Commit
d6f7d7ec
authored
Jan 05, 2019
by
Twiga
Browse files
Start using range-based loops.
parent
331b6176
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Model.cpp
View file @
d6f7d7ec
...
...
@@ -12,10 +12,11 @@ Model::Model() {
Model
::~
Model
()
{
// llvm::errs() << "\n[[ Destructor Model ]]\n";
// Delete all ModuleDecl pointers.
for
(
Model
::
moduleMapType
::
iterator
mit
=
modules_
.
begin
();
mit
!=
modules_
.
end
();
mit
++
)
{
//
for (Model::moduleMapType::iterator mit = modules_.begin();
mit != modules_.end(); mit++) {
for
(
auto
const
&
[
it
,
module_decl
]
:
modules_
)
{
// Second is the ModuleDecl type.
delete
mit
->
second
;
//delete mit->second;
delete
module_decl
;
}
modules_
.
clear
();
}
...
...
Write
Preview
Supports
Markdown
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