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/mTextControl/src/textusers.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/mTextControl/src/textusers.cpp')
-rw-r--r-- | plugins/mTextControl/src/textusers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mTextControl/src/textusers.cpp b/plugins/mTextControl/src/textusers.cpp index 867c5e1243..b9a16a3d21 100644 --- a/plugins/mTextControl/src/textusers.cpp +++ b/plugins/mTextControl/src/textusers.cpp @@ -19,10 +19,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include "stdafx.h"
-HANDLE htuDefault = 0;
+HANDLE htuDefault = nullptr;
-TextUser *textUserFirst = 0;
-TextUser *textUserLast = 0;
+TextUser *textUserFirst = nullptr;
+TextUser *textUserLast = nullptr;
void LoadTextUsers()
{
@@ -48,7 +48,7 @@ HANDLE DLL_CALLCONV MTI_TextUserAdd(const char *userTitle, DWORD options) (db_get_dw(0, MODULNAME, userTitle, options)&MTEXT_FANCY_MASK) | (textUserNew->options&MTEXT_SYSTEM_MASK);
db_set_dw(0, MODULNAME, userTitle, textUserNew->options);
textUserNew->prev = textUserLast;
- textUserNew->next = 0;
+ textUserNew->next = nullptr;
if (textUserLast) {
textUserLast->next = textUserNew;
textUserLast = textUserNew;
|