summaryrefslogtreecommitdiff
path: root/src/EventHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/EventHandler.cpp')
-rw-r--r--src/EventHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/EventHandler.cpp b/src/EventHandler.cpp
index cd67379..43f2eb1 100644
--- a/src/EventHandler.cpp
+++ b/src/EventHandler.cpp
@@ -7,7 +7,7 @@ using namespace std;
namespace TgBot {
-void EventHandler::handleUpdate(Update::Ptr update) const {
+void EventHandler::handleUpdate(const Update::Ptr& update) const {
if (update->inlineQuery != nullptr) {
_broadcaster.broadcastInlineQuery(update->inlineQuery);
}
@@ -22,7 +22,7 @@ void EventHandler::handleUpdate(Update::Ptr update) const {
}
}
-void EventHandler::handleMessage(Message::Ptr message) const {
+void EventHandler::handleMessage(const Message::Ptr& message) const {
_broadcaster.broadcastAnyMessage(message);
if (StringTools::startsWith(message->text, "/")) {