summaryrefslogtreecommitdiff
path: root/src/being/being.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/being.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/being.cpp')
-rw-r--r--src/being/being.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 90638ef55..333e60d12 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -4496,7 +4496,7 @@ void Being::updateHit(const int amount) restrict2
Equipment *Being::getEquipment() restrict2
{
- Equipment *restrict const eq = new Equipment();
+ Equipment *restrict const eq = new Equipment;
Equipment::Backend *restrict const bk = new BeingEquipBackend(this);
eq->setBackend(bk);
return eq;
@@ -4845,7 +4845,7 @@ void Being::addItemParticles(const int id,
ParticleInfo *restrict pi = nullptr;
if (it == mSpriteParticles.end())
{
- pi = new ParticleInfo();
+ pi = new ParticleInfo;
mSpriteParticles[id] = pi;
}
else
@@ -4883,7 +4883,7 @@ void Being::addItemParticlesCards(const int id,
ParticleInfo *restrict pi = nullptr;
if (it == mSpriteParticles.end())
{
- pi = new ParticleInfo();
+ pi = new ParticleInfo;
mSpriteParticles[id] = pi;
}
else