summaryrefslogtreecommitdiff
path: root/src/being/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-10 16:40:52 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-10 16:40:52 +0300
commit4df1e68047488ec00a264c076bb3222715f42295 (patch)
tree22ea99ebcd00a6c9d6da0729706b765a49085c5f /src/being/compoundsprite.cpp
parentbfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff)
downloadmv-4df1e68047488ec00a264c076bb3222715f42295.tar.gz
mv-4df1e68047488ec00a264c076bb3222715f42295.tar.bz2
mv-4df1e68047488ec00a264c076bb3222715f42295.tar.xz
mv-4df1e68047488ec00a264c076bb3222715f42295.zip
Fix new style issue detected by mplint.
new class() -> new class
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r--src/being/compoundsprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp
index 72f3943fe..4f5c6bf3e 100644
--- a/src/being/compoundsprite.cpp
+++ b/src/being/compoundsprite.cpp
@@ -337,7 +337,7 @@ void CompoundSprite::redraw() const
if (!surface)
return;
- SurfaceGraphics *graphics = new SurfaceGraphics();
+ SurfaceGraphics *graphics = new SurfaceGraphics;
graphics->setBlitMode(BlitMode::BLIT_GFX);
graphics->setTarget(surface);
graphics->beginDraw();
@@ -521,7 +521,7 @@ bool CompoundSprite::updateFromCache() const
void CompoundSprite::initCurrentCacheItem() const
{
delete mCacheItem;
- mCacheItem = new CompoundItem();
+ mCacheItem = new CompoundItem;
mCacheItem->image = mImage;
mCacheItem->alphaImage = mAlphaImage;
// mCacheItem->alpha = mAlpha;