mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-21 14:40:41 +02:00
{message,submit}_queue: add missing const in callback loop
This commit is contained in:
parent
2d96e35793
commit
8acf512c65
2 changed files with 2 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ void message_queue::run(bot::settings::settings *settings, submit_queue *submit_
|
|||
if (!m_queue.empty()) {
|
||||
const message message = m_queue.front();
|
||||
m_queue.pop();
|
||||
for (message_queue_size_callback &callback : m_callbacks)
|
||||
for (const message_queue_size_callback &callback : m_callbacks)
|
||||
callback(m_queue.size());
|
||||
m_mutex.unlock();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue