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/YAPP/src/yapp_history.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/YAPP/src/yapp_history.cpp')
-rw-r--r-- | plugins/YAPP/src/yapp_history.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/YAPP/src/yapp_history.cpp b/plugins/YAPP/src/yapp_history.cpp index 8e02c3c2ca..fb881cf1c1 100644 --- a/plugins/YAPP/src/yapp_history.cpp +++ b/plugins/YAPP/src/yapp_history.cpp @@ -38,8 +38,8 @@ void PopupHistoryList::DeleteData(int index) mir_free(item->titleT); mir_free(item->messageT); item->timestamp = 0; //invalidate item - item->title = NULL; - item->message = NULL; + item->title = nullptr; + item->message = nullptr; item->flags = 0; } @@ -77,7 +77,7 @@ PopupHistoryData *PopupHistoryList::Get(int index) { if ((index < 0) || (index >= count)) //a bit of sanity check { - return NULL; + return nullptr; } return &historyData[index]; |