summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.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/resources/map/maplayer.cpp
parentbfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff)
downloadmanaverse-4df1e68047488ec00a264c076bb3222715f42295.tar.gz
manaverse-4df1e68047488ec00a264c076bb3222715f42295.tar.bz2
manaverse-4df1e68047488ec00a264c076bb3222715f42295.tar.xz
manaverse-4df1e68047488ec00a264c076bb3222715f42295.zip
Fix new style issue detected by mplint.
new class() -> new class
Diffstat (limited to 'src/resources/map/maplayer.cpp')
-rw-r--r--src/resources/map/maplayer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp
index 57e49b3eb..4c6fe3a1e 100644
--- a/src/resources/map/maplayer.cpp
+++ b/src/resources/map/maplayer.cpp
@@ -230,7 +230,7 @@ void MapLayer::updateSDL(const Graphics *const graphics,
for (int y = startY; y < endY; y++)
{
- MapRowVertexes *const row = new MapRowVertexes();
+ MapRowVertexes *const row = new MapRowVertexes;
mTempRows.push_back(row);
const Image *lastImage = nullptr;
@@ -252,7 +252,7 @@ void MapLayer::updateSDL(const Graphics *const graphics,
{
if (lastImage != img)
{
- imgVert = new ImageVertexes();
+ imgVert = new ImageVertexes;
imgVert->image = img;
row->images.push_back(imgVert);
lastImage = img;
@@ -293,7 +293,7 @@ void MapLayer::updateOGL(Graphics *const graphics,
const int dx = mPixelX - scrollX;
const int dy = mPixelY - scrollY;
- MapRowVertexes *const row = new MapRowVertexes();
+ MapRowVertexes *const row = new MapRowVertexes;
mTempRows.push_back(row);
Image *lastImage = nullptr;
ImageVertexes *imgVert = nullptr;
@@ -330,7 +330,7 @@ void MapLayer::updateOGL(Graphics *const graphics,
{
if (lastImage)
imgSet[lastImage->mGLImage] = imgVert;
- imgVert = new ImageVertexes();
+ imgVert = new ImageVertexes;
imgVert->ogl.init();
imgVert->image = img;
row->images.push_back(imgVert);