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/MirandaG15/src/CNotificationScreen.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/MirandaG15/src/CNotificationScreen.cpp')
-rw-r--r-- | plugins/MirandaG15/src/CNotificationScreen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirandaG15/src/CNotificationScreen.cpp b/plugins/MirandaG15/src/CNotificationScreen.cpp index 26955ebf78..671c315276 100644 --- a/plugins/MirandaG15/src/CNotificationScreen.cpp +++ b/plugins/MirandaG15/src/CNotificationScreen.cpp @@ -8,7 +8,7 @@ //************************************************************************
CNotificationScreen::CNotificationScreen()
{
- m_pEntry = NULL;
+ m_pEntry = nullptr;
//m_bMessageMode = false;
}
@@ -65,7 +65,7 @@ bool CNotificationScreen::Initialize() //************************************************************************
bool CNotificationScreen::Shutdown()
{
- CNotificationEntry *pEntry = NULL;
+ CNotificationEntry *pEntry = nullptr;
while(!m_LNotifications.empty())
{
pEntry = *(m_LNotifications.begin());
@@ -117,7 +117,7 @@ bool CNotificationScreen::Draw(CLCDGfx *pGfx) //************************************************************************
void CNotificationScreen::DisplayNotification(CNotificationEntry *pEntry)
{
- if(m_pEntry != NULL)
+ if(m_pEntry != nullptr)
delete m_pEntry;
@@ -359,7 +359,7 @@ void CNotificationScreen::OnDeactivation() void CNotificationScreen::OnExpiration()
{
// clear the cached events
- CNotificationEntry *pEntry = NULL;
+ CNotificationEntry *pEntry = nullptr;
while(!m_LNotifications.empty())
{
pEntry = *(m_LNotifications.begin());
@@ -370,5 +370,5 @@ void CNotificationScreen::OnExpiration() m_EventText.SetText(L"");
m_MessageText.SetText(L"");
- m_pEntry = NULL;
+ m_pEntry = nullptr;
}
\ No newline at end of file |