- // If all enabled, set all alert cateogries:
- if (enable)
- {
- btSession_->set_alert_mask(libtorrent::alert::all_categories);
- }
- else
- {
- // Otherwise set to default, which is only error notifications.
- btSession_->set_alert_mask(libtorrent::alert::error_notification);
- }
+ // If all enabled, set all alert cateogries:
+ if (enable) {
+ btSession_->set_alert_mask(libtorrent::alert::all_categories);
+ } else {
+ // Otherwise set to default, which is only error notifications.
+ btSession_->set_alert_mask(libtorrent::alert::error_notification);
+ }