Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
c75921cc
Commit
c75921cc
authored
Jan 20, 2016
by
Hahn, Steven
Browse files
Cleanup comments added to HistoryView class.
parent
f43b1fce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/API/src/HistoryView.cpp
View file @
c75921cc
...
...
@@ -82,8 +82,8 @@ void HistoryView::unroll(std::vector<HistoryItem>::iterator &it) {
void
HistoryView
::
unrollAll
()
{
auto
it
=
m_historyItems
.
begin
();
while
(
it
!=
m_historyItems
.
end
())
{
// iterator passed
as a
reference to prevent iterator invalidation.
// iterator incremented within
loop
.
// iterator passed
by
reference to prevent iterator invalidation.
// iterator incremented within
function
.
unroll
(
it
);
}
}
...
...
@@ -99,7 +99,7 @@ void HistoryView::unrollAll() {
void
HistoryView
::
rollAll
()
{
auto
it
=
m_historyItems
.
begin
();
while
(
it
!=
m_historyItems
.
end
())
{
// iterator incremented within
loop
.
// iterator incremented within
function
.
roll
(
it
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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