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/anim.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/SmileyAdd/src/anim.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/anim.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SmileyAdd/src/anim.cpp b/plugins/SmileyAdd/src/anim.cpp index 6770f81064..4e04871e89 100644 --- a/plugins/SmileyAdd/src/anim.cpp +++ b/plugins/SmileyAdd/src/anim.cpp @@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. Animate::Animate(SmileyType *sml, RECT &rect, HDC hdcMem, HBRUSH hbr, bool clip) :
m_sml(sml),
- m_img(NULL),
+ m_img(nullptr),
m_nFramePosition(0), m_sel(false), m_clip(clip),
m_offset(0), m_running(false),
m_hdcMem(hdcMem), m_hbr(hbr)
@@ -97,15 +97,15 @@ void Animate::SetOffset(int off, int wsize) m_running = m_cliprect.top >= 0 && m_cliprect.top < wsize;
if (m_running) {
- if (m_img == NULL) {
+ if (m_img == nullptr) {
StartAnimation();
- if (m_img == NULL)
+ if (m_img == nullptr)
m_running = false;
}
}
else {
if (m_img) m_img->Release();
- m_img = NULL;
+ m_img = nullptr;
}
}
|