Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
systemc-clang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
caesr-pub
systemc-clang
Commits
d6f7d7ec
Commit
d6f7d7ec
authored
Jan 05, 2019
by
Twiga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start using range-based loops.
parent
331b6176
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/Model.cpp
src/Model.cpp
+4
-3
No files found.
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
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