diff options
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;
}
}
|