summaryrefslogtreecommitdiff
path: root/plugins/MirFox/src/MirfoxMiranda.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/MirFox/src/MirfoxMiranda.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/MirFox/src/MirfoxMiranda.cpp')
-rw-r--r--plugins/MirFox/src/MirfoxMiranda.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/MirFox/src/MirfoxMiranda.cpp b/plugins/MirFox/src/MirfoxMiranda.cpp
index 0a59139994..176929461c 100644
--- a/plugins/MirFox/src/MirfoxMiranda.cpp
+++ b/plugins/MirFox/src/MirfoxMiranda.cpp
@@ -64,7 +64,7 @@ void CMirfoxMiranda::onAccListChanged(WPARAM wParam, LPARAM lParam)
switch (wParam) {
case PRAC_ADDED:
- if (acc != NULL) {
+ if (acc != nullptr) {
//checking account
if(acc->bIsEnabled == 0 || acc->bDynDisabled != 0){
return;
@@ -75,7 +75,7 @@ void CMirfoxMiranda::onAccListChanged(WPARAM wParam, LPARAM lParam)
case PRAC_UPGRADED:
case PRAC_CHANGED:
- if (acc != NULL) {
+ if (acc != nullptr) {
//checking account
if(acc->bIsEnabled == 0 || acc->bDynDisabled != 0){
return;
@@ -89,7 +89,7 @@ void CMirfoxMiranda::onAccListChanged(WPARAM wParam, LPARAM lParam)
break;
case PRAC_CHECKED:
- if (acc != NULL) {
+ if (acc != nullptr) {
if (acc->bIsEnabled) {
//checking account
if(acc->bDynDisabled != 0){
@@ -109,7 +109,7 @@ void CMirfoxMiranda::onAccListChanged(WPARAM wParam, LPARAM lParam)
void CMirfoxMiranda::onContactAdded_async(void* threadArg)
{
- Thread_Push(0);
+ Thread_Push(nullptr);
OnContactAsyncThreadArgStruct* onContactAsyncThreadArgStruct = (OnContactAsyncThreadArgStruct*)threadArg;
CMirfoxMiranda* mirfoxMiranda = onContactAsyncThreadArgStruct->mirfoxMiranda;
MFLogger* logger = MFLogger::getInstance();
@@ -169,7 +169,7 @@ void CMirfoxMiranda::onContactSettingChanged(MCONTACT hContact, LPARAM lParam)
void CMirfoxMiranda::onContactSettingChanged_async(void* threadArg){
- Thread_Push(0);
+ Thread_Push(nullptr);
OnContactAsyncThreadArgStruct* onContactAsyncThreadArgStruct = (OnContactAsyncThreadArgStruct*)threadArg;
CMirfoxMiranda* mirfoxMiranda = onContactAsyncThreadArgStruct->mirfoxMiranda;
MFLogger* logger = MFLogger::getInstance();
@@ -260,10 +260,10 @@ void CMirfoxMiranda::initializeSharedMemoryData(MirfoxData& mirfoxData, SharedMe
if(result.errorCode != 0){
//error
if (result.errorCode == -3){ //existing csm version is too high -> i'm too old
- MessageBox(NULL, TranslateT("This MirFox (Miranda) plugin is too old. Please update it."), TranslateT("MirFox (Miranda) - Error"), MB_OK | MB_ICONWARNING );
+ MessageBox(nullptr, TranslateT("This MirFox (Miranda) plugin is too old. Please update it."), TranslateT("MirFox (Miranda) - Error"), MB_OK | MB_ICONWARNING );
}
if (result.errorCode == -4){ //existing csm version is too low -> sb is too old
- MessageBox(NULL, TranslateT("This MirFox (Miranda) plugin cannot start because some other MirFox component is too old. Please, check and update your MirFox components."), TranslateT("MirFox (Miranda) - Error"), MB_OK | MB_ICONWARNING );
+ MessageBox(nullptr, TranslateT("This MirFox (Miranda) plugin cannot start because some other MirFox component is too old. Please, check and update your MirFox components."), TranslateT("MirFox (Miranda) - Error"), MB_OK | MB_ICONWARNING );
}
mirfoxData.setPluginState(MFENUM_PLUGIN_STATE_ERROR);
return;
@@ -319,7 +319,7 @@ void CMirfoxMiranda::unloadSharedMemory()
void CMirfoxMiranda::csmThread(void* threadArg)
{
- Thread_Push(0);
+ Thread_Push(nullptr);
CMirfoxMiranda* mirfoxMirandaPtr = (CMirfoxMiranda*)threadArg;
MirfoxData* mirfoxDataPtr = &(mirfoxMirandaPtr->getMirfoxData());
@@ -436,7 +436,7 @@ void CMirfoxMiranda::unloadMessageQueue(uint16_t unloadedMQProcessId)
void CMirfoxMiranda::msgQueueThread(void* threadArg)
{
- Thread_Push(0);
+ Thread_Push(nullptr);
CMirfoxMiranda* mirfoxMirandaPtr = (CMirfoxMiranda*)threadArg;
MirfoxData* mirfoxDataPtr = &(mirfoxMirandaPtr->getMirfoxData());