summaryrefslogtreecommitdiff
path: root/src/render/sdl2graphics.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/render/sdl2graphics.cpp
parentbfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff)
downloadplus-4df1e68047488ec00a264c076bb3222715f42295.tar.gz
plus-4df1e68047488ec00a264c076bb3222715f42295.tar.bz2
plus-4df1e68047488ec00a264c076bb3222715f42295.tar.xz
plus-4df1e68047488ec00a264c076bb3222715f42295.zip
Fix new style issue detected by mplint.
new class() -> new class
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r--src/render/sdl2graphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp
index 21aab3779..a8b5515c4 100644
--- a/src/render/sdl2graphics.cpp
+++ b/src/render/sdl2graphics.cpp
@@ -446,7 +446,7 @@ void SDLGraphics::calcPatternInline(ImageVertexes *restrict const vert,
const int dw = (px + iw >= w) ? w - px : iw;
const int dstX = px + xOffset;
- DoubleRect *const r = new DoubleRect();
+ DoubleRect *const r = new DoubleRect;
SDL_Rect &dstRect = r->dst;
SDL_Rect &srcRect = r->src;
srcRect.x = CAST_S32(srcX);
@@ -471,7 +471,7 @@ void SDLGraphics::calcPattern(ImageCollection *restrict const vertCol,
ImageVertexes *vert = nullptr;
if (vertCol->currentImage != image)
{
- vert = new ImageVertexes();
+ vert = new ImageVertexes;
vertCol->currentImage = image;
vertCol->currentVert = vert;
vert->image = image;
@@ -518,7 +518,7 @@ void SDLGraphics::calcTileSDL(ImageVertexes *restrict const vert,
x += top.xOffset;
y += top.yOffset;
- DoubleRect *rect = new DoubleRect();
+ DoubleRect *rect = new DoubleRect;
SDL_Rect &dstRect = rect->dst;
SDL_Rect &srcRect = rect->src;
@@ -542,7 +542,7 @@ void SDLGraphics::calcTileCollection(ImageCollection *restrict const vertCol,
return;
if (vertCol->currentImage != image)
{
- ImageVertexes *const vert = new ImageVertexes();
+ ImageVertexes *const vert = new ImageVertexes;
vertCol->currentImage = image;
vertCol->currentVert = vert;
vert->image = image;
@@ -612,7 +612,7 @@ void SDLGraphics::calcWindow(ImageCollection *restrict const vertCol,
return;
if (vertCol->currentImage != image)
{
- vert = new ImageVertexes();
+ vert = new ImageVertexes;
vertCol->currentImage = image;
vertCol->currentVert = vert;
vert->image = image;