add some const

This commit is contained in:
arvidn 2018-10-19 19:22:26 +02:00 committed by Arvid Norberg
parent 6eb05e4842
commit 36801fb96f
1 changed files with 2 additions and 2 deletions

View File

@ -5446,9 +5446,9 @@ namespace libtorrent {
// deduct the bytes we already have quota for
bytes -= m_quota[channel];
int priority = get_priority(channel);
int const priority = get_priority(channel);
int max_channels = num_classes() + (t ? t->num_classes() : 0) + 2;
int const max_channels = num_classes() + (t ? t->num_classes() : 0) + 2;
TORRENT_ALLOCA(channels, bandwidth_channel*, max_channels);
// collect the pointers to all bandwidth channels