diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/SmileyAdd/src/dlgboxsubclass.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/SmileyAdd/src/dlgboxsubclass.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/dlgboxsubclass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp index fff1cfee75..b502c72000 100644 --- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp +++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp @@ -36,7 +36,7 @@ struct MsgWndData : public MZeroedObject doSmileyButton = opt.ButtonStatus != 0;
SmileyPackType *SmileyPack = GetSmileyPack(ProtocolName, hContact);
- doSmileyButton &= SmileyPack != NULL && SmileyPack->VisibleSmileyCount() != 0;
+ doSmileyButton &= SmileyPack != nullptr && SmileyPack->VisibleSmileyCount() != 0;
doSmileyReplace = true;
@@ -83,7 +83,7 @@ static MsgWndData* IsMsgWnd(HWND hwnd) static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
MsgWndData *dat = IsMsgWnd(hwnd);
- if (dat == NULL)
+ if (dat == nullptr)
return 0;
switch (uMsg) {
@@ -122,7 +122,7 @@ static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, if (dat->doSmileyReplace) {
SmileyPackCType *smcp;
SmileyPackType *SmileyPack = GetSmileyPack(dat->ProtocolName, dat->hContact, &smcp);
- if (SmileyPack != NULL) {
+ if (SmileyPack != nullptr) {
const CHARRANGE sel = { dat->idxLastChar, LONG_MAX };
ReplaceSmileys(dat->hwndLog, SmileyPack, smcp, sel, false, false, false);
}
@@ -133,7 +133,7 @@ static LRESULT CALLBACK MessageDlgSubclass(HWND hwnd, UINT uMsg, WPARAM wParam, if (dat->doSmileyReplace) {
SmileyPackCType *smcp;
SmileyPackType *SmileyPack = GetSmileyPack(dat->ProtocolName, dat->hContact, &smcp);
- if (SmileyPack != NULL) {
+ if (SmileyPack != nullptr) {
static const CHARRANGE sel = { 0, LONG_MAX };
ReplaceSmileys(dat->hwndLog, SmileyPack, smcp, sel, false, false, false);
}
@@ -176,7 +176,7 @@ int SmileyButtonPressed(WPARAM, LPARAM lParam) return 0;
MsgWndData *dat = IsMsgWnd(pcbc->hwndFrom);
- if (dat == NULL)
+ if (dat == nullptr)
return 0;
SmileyToolWindowParam *stwp = new SmileyToolWindowParam;
|