From 81c8606dd9aa39067353354aa4523be84ef51fd1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 May 2018 14:17:28 +0300 Subject: CDlgBase::CDlgBase now receives a reference to CMPlugin instead of HINSTANCE --- plugins/Scriver/src/msgoptions.cpp | 2 +- plugins/Scriver/src/msgs.cpp | 2 +- plugins/Scriver/src/msgtimedout.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp index d2e4f6806a..30d35d39cf 100644 --- a/plugins/Scriver/src/msgoptions.cpp +++ b/plugins/Scriver/src/msgoptions.cpp @@ -622,7 +622,7 @@ class CLogOptionsDlg : public CDlgBase public: CLogOptionsDlg() : - CDlgBase(g_plugin.getInst(), IDD_OPT_MSGLOG), + CDlgBase(g_plugin, IDD_OPT_MSGLOG), m_log(this, IDC_SRMM_LOG) {} diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index a1f94fc2a6..cb41109d0e 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -326,7 +326,7 @@ static int AvatarChanged(WPARAM wParam, LPARAM lParam) // CScriverWindow CScriverWindow::CScriverWindow(int iDialog, SESSION_INFO *si) - : CSrmmBaseDialog(g_plugin.getInst(), iDialog, si) + : CSrmmBaseDialog(g_plugin, iDialog, si) { m_autoClose = CLOSE_ON_CANCEL; } diff --git a/plugins/Scriver/src/msgtimedout.cpp b/plugins/Scriver/src/msgtimedout.cpp index 1c2a5663db..672b5ea81d 100644 --- a/plugins/Scriver/src/msgtimedout.cpp +++ b/plugins/Scriver/src/msgtimedout.cpp @@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" CErrorDlg::CErrorDlg(const wchar_t *pwszDescr, HWND hWnd, MessageSendQueueItem *pItem) - : CDlgBase(g_plugin.getInst(), IDD_MSGSENDERROR), + : CDlgBase(g_plugin, IDD_MSGSENDERROR), m_wszText(mir_utf8decodeW(pItem->sendBuffer)), m_wszDescr(pwszDescr != nullptr ? pwszDescr : TranslateT("An unknown error has occurred.")), m_hwndParent(hWnd), -- cgit v1.2.3