Skip to content

Commit

Permalink
fix typos in alert loop example code
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Aug 20, 2020
1 parent 0c06719 commit 3e17c24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/libtorrent/alert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ namespace alert_category {
//
// std::vector<alert*> alerts;
// ses.pop_alerts(&alerts);
// for (alert* i : alerts) {
// for (alert* a : alerts) {
// switch (a->type()) {
//
// case read_piece_alert::alert_type:
Expand Down
8 changes: 4 additions & 4 deletions include/libtorrent/torrent_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,17 +713,17 @@ namespace aux {
//
// for (alert* i : alerts)
// {
// if (alert_cast<save_resume_data_failed_alert>(a))
// if (alert_cast<save_resume_data_failed_alert>(i))
// {
// process_alert(a);
// process_alert(i);
// --outstanding_resume_data;
// continue;
// }
//
// save_resume_data_alert const* rd = alert_cast<save_resume_data_alert>(a);
// save_resume_data_alert const* rd = alert_cast<save_resume_data_alert>(i);
// if (rd == nullptr)
// {
// process_alert(a);
// process_alert(i);
// continue;
// }
//
Expand Down

0 comments on commit 3e17c24

Please sign in to comment.