summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-25 19:13:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-25 19:13:31 +0300
commit9fb53308fb29d51429927579fb45d171e2ce6c07 (patch)
tree26c5875cdbde83439441ddca693b9ecce4ca3cf2 /src
parent03f3024c07c0fe5b5bd83e8d058e661f62239923 (diff)
code cleaning to avoid visual name conflict
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/msgs.cpp6
-rw-r--r--src/core/stdmsg/src/msgs.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp
index 077504cfe0..c7303ce01d 100644
--- a/src/core/stdmsg/src/msgs.cpp
+++ b/src/core/stdmsg/src/msgs.cpp
@@ -88,14 +88,14 @@ static int MessageEventAdded(WPARAM hContact, LPARAM hDbEvent)
if (!pDlg) {
if (bPopup) {
pDlg = GetContainer()->AddPage(hContact, nullptr, true);
- pContainer = pDlg->getContainer();
+ pContainer = pDlg->getOwner();
}
Skin_PlaySound("AlertMsg");
Srmm_AddEvent(hContact, hDbEvent);
}
else {
- pContainer = pDlg->getContainer();
+ pContainer = pDlg->getOwner();
if (bPopup)
ShowWindow(pContainer->GetHwnd(), SW_RESTORE);
@@ -152,7 +152,7 @@ INT_PTR SendMessageCmd(MCONTACT hContact, wchar_t *pwszInitialText)
}
else {
auto *pDlg = GetContainer()->AddPage(hContact, pwszInitialText, false);
- hwndContainer = pDlg->getContainer()->GetHwnd();
+ hwndContainer = pDlg->getOwner()->GetHwnd();
}
ShowWindow(hwndContainer, SW_RESTORE);
diff --git a/src/core/stdmsg/src/msgs.h b/src/core/stdmsg/src/msgs.h
index 9a72a2ca55..aa6e028f74 100644
--- a/src/core/stdmsg/src/msgs.h
+++ b/src/core/stdmsg/src/msgs.h
@@ -139,7 +139,7 @@ public:
return ((CLogWindow *)m_pLog);
}
- __forceinline CTabbedWindow* getContainer() const {
+ __forceinline CTabbedWindow* getOwner() const {
return m_pOwner;
}