From 893fe6d2f16f5e70087aa9d5949aff5aaff556d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Jan 2023 13:47:54 +0300 Subject: Telegram: CMTProto class renamed according to Miranda standards --- protocols/Telegram/src/utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Telegram/src/utils.cpp') diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index df4a0d9118..b2eaeac1ca 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -17,7 +17,7 @@ along with this program. If not, see . #include "stdafx.h" -void CMTProto::UpdateString(MCONTACT hContact, const char *pszSetting, const std::string &str) +void CTelegramProto::UpdateString(MCONTACT hContact, const char *pszSetting, const std::string &str) { if (str.empty()) delSetting(hContact, pszSetting); @@ -28,7 +28,7 @@ void CMTProto::UpdateString(MCONTACT hContact, const char *pszSetting, const std ///////////////////////////////////////////////////////////////////////////////////////// // Users -TG_USER* CMTProto::FindUser(uint64_t id) +TG_USER* CTelegramProto::FindUser(uint64_t id) { if (auto *pCache = m_arUsers.find((TG_USER *)&id)) return pCache; @@ -36,7 +36,7 @@ TG_USER* CMTProto::FindUser(uint64_t id) return nullptr; } -TG_USER* CMTProto::AddUser(uint64_t id, bool bIsChat) +TG_USER* CTelegramProto::AddUser(uint64_t id, bool bIsChat) { auto *pUser = FindUser(id); if (pUser != nullptr) @@ -67,7 +67,7 @@ TG_USER* CMTProto::AddUser(uint64_t id, bool bIsChat) ///////////////////////////////////////////////////////////////////////////////////////// // Popups -void CMTProto::InitPopups(void) +void CTelegramProto::InitPopups(void) { g_plugin.addPopupOption(CMStringW(FORMAT, TranslateT("%s error notifications"), m_tszUserName), m_bUsePopups); @@ -90,7 +90,7 @@ void CMTProto::InitPopups(void) IcoLib_ReleaseIcon(ppc.hIcon); } -void CMTProto::Popup(MCONTACT hContact, const wchar_t *szMsg, const wchar_t *szTitle) +void CTelegramProto::Popup(MCONTACT hContact, const wchar_t *szMsg, const wchar_t *szTitle) { if (!m_bUsePopups) return; -- cgit v1.2.3