summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/cloud_file.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-21 12:33:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-21 12:33:31 +0300
commitca5001026a94f702c4012c5e8d2093ad3f51c1fa (patch)
tree554ad80633528d530057fc61035b15f901860ed2 /plugins/CloudFile/src/cloud_file.cpp
parente0799755b3966d1d6d8275ee5127242ec029a4e6 (diff)
code cleaning:
- in conformance to C++'11 rules, we don't declare a method as virtual if it's declared as override; - cause this code isn't visible in Pascal anymore, there's no need to use __cdecl calling convention for virtual methods; - since PROTO_INTERFACE is a regular C++ class, there's no need to use old style service declarations for virtual methods like OnModulesLoaded / OnShutdown
Diffstat (limited to 'plugins/CloudFile/src/cloud_file.cpp')
-rw-r--r--plugins/CloudFile/src/cloud_file.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/CloudFile/src/cloud_file.cpp b/plugins/CloudFile/src/cloud_file.cpp
index 0c2f048cd8..86e65b6b34 100644
--- a/plugins/CloudFile/src/cloud_file.cpp
+++ b/plugins/CloudFile/src/cloud_file.cpp
@@ -36,7 +36,7 @@ const wchar_t* CCloudService::GetUserName() const
return m_tszUserName;
}
-DWORD_PTR CCloudService::GetCaps(int type, MCONTACT)
+INT_PTR CCloudService::GetCaps(int type, MCONTACT)
{
switch (type) {
case PFLAGNUM_1:
@@ -91,10 +91,6 @@ void CCloudService::OpenUploadDialog(MCONTACT hContact)
int CCloudService::OnEvent(PROTOEVENTTYPE iEventType, WPARAM, LPARAM)
{
switch (iEventType) {
- case EV_PROTO_ONLOAD:
- AddServiceMenuItem(this);
- return 0;
-
case EV_PROTO_ONERASE:
KillModuleMenus(m_hLangpack);
return 0;