diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-03 19:34:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-03 19:34:39 +0300 |
commit | a0ad33a285bac4d7f0ad3f29c9edc925e8c1429e (patch) | |
tree | 68f2f839a567fa98f7941de08cf9bfb0ad37c3e9 /protocols/FacebookRM/src/proto.h | |
parent | 8fd0e627d37cd4aef97f2c49e5b042e86e184544 (diff) |
code cleaning
Diffstat (limited to 'protocols/FacebookRM/src/proto.h')
-rw-r--r-- | protocols/FacebookRM/src/proto.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h index 8a021dde9d..db29bf6617 100644 --- a/protocols/FacebookRM/src/proto.h +++ b/protocols/FacebookRM/src/proto.h @@ -89,11 +89,11 @@ public: // DB utils missing in proto_interface __forceinline INT_PTR getStringUtf(const char *name, DBVARIANT *result) { - return db_get_utf(NULL, m_szModuleName, name, result); } + return db_get_utf(0, m_szModuleName, name, result); } __forceinline INT_PTR getStringUtf(MCONTACT hContact, const char *name, DBVARIANT *result) { return db_get_utf(hContact, m_szModuleName, name, result); } - __forceinline void setStringUtf(const char *name, const char* value) { db_set_utf(NULL, m_szModuleName, name, value); } + __forceinline void setStringUtf(const char *name, const char* value) { db_set_utf(0, m_szModuleName, name, value); } __forceinline void setStringUtf(MCONTACT hContact, const char *name, const char* value) { db_set_utf(hContact, m_szModuleName, name, value); } //PROTO_INTERFACE @@ -104,7 +104,7 @@ public: virtual int __cdecl AuthDeny(MEVENT hDbEvent, const wchar_t* szReason); virtual int __cdecl AuthRequest(MCONTACT hContact, const wchar_t* szMessage); - virtual DWORD_PTR __cdecl GetCaps(int type, MCONTACT hContact = NULL); + virtual DWORD_PTR __cdecl GetCaps(int type, MCONTACT hContact = 0); virtual int __cdecl GetInfo(MCONTACT hContact, int infoType); virtual HANDLE __cdecl SearchBasic(const wchar_t* id); @@ -277,6 +277,6 @@ public: std::vector<MCONTACT> avatar_queue; // Information providing - HWND NotifyEvent(wchar_t* title, wchar_t* text, MCONTACT contact, EventType type, std::string *url = NULL, std::string *notification_id = NULL, const char *icon = NULL); + HWND NotifyEvent(wchar_t* title, wchar_t* text, MCONTACT contact, EventType type, std::string *url = nullptr, std::string *notification_id = nullptr, const char *icon = nullptr); void ShowNotifications(); }; |