Skip to content

Commit

Permalink
Update view.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarthelemy authored Mar 16, 2017
1 parent 4d1b842 commit ec4da15
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tools/rosbag_storage/src/view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ View::iterator::iterator(const iterator& i) : view_(i.view_), iters_(i.iters_),
View::iterator &View::iterator::operator=(iterator const& i) {
if (this != &i)
{
view_ = i.view_;
iters_ = i.iters_;
view_revision_ = i.view_revision_;
if (message_instance_ != NULL) {
delete message_instance_;
message_instance_ = NULL;
}
view_ = i.view_;
iters_ = i.iters_;
view_revision_ = i.view_revision_;
if (message_instance_ != NULL) {
delete message_instance_;
message_instance_ = NULL;
}
}
return *this;
}
Expand Down

0 comments on commit ec4da15

Please sign in to comment.