summaryrefslogtreecommitdiff
path: root/src/render/sdl2softwaregraphics.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/sdl2softwaregraphics.cpp
parentbfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff)
downloadmanaplus-4df1e68047488ec00a264c076bb3222715f42295.tar.gz
manaplus-4df1e68047488ec00a264c076bb3222715f42295.tar.bz2
manaplus-4df1e68047488ec00a264c076bb3222715f42295.tar.xz
manaplus-4df1e68047488ec00a264c076bb3222715f42295.zip
Fix new style issue detected by mplint.
new class() -> new class
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r--src/render/sdl2softwaregraphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp
index 91e3ce7a4..789ec413b 100644
--- a/src/render/sdl2softwaregraphics.cpp
+++ b/src/render/sdl2softwaregraphics.cpp
@@ -645,7 +645,7 @@ void SDL2SoftwareGraphics::calcPatternInline(ImageVertexes *
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 &srcRect = r->src;
srcRect.x = CAST_S16(srcX);
srcRect.y = CAST_S16(srcY);
@@ -678,7 +678,7 @@ void SDL2SoftwareGraphics::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;
@@ -721,7 +721,7 @@ void SDL2SoftwareGraphics::calcTileSDL(ImageVertexes *restrict const vert,
const ClipRect &top = mClipStack.top();
const SDL_Rect &bounds = image->mBounds;
- DoubleRect *rect = new DoubleRect();
+ DoubleRect *rect = new DoubleRect;
rect->src.x = CAST_S16(bounds.x);
rect->src.y = CAST_S16(bounds.y);
rect->src.w = CAST_U16(bounds.w);
@@ -749,7 +749,7 @@ void SDL2SoftwareGraphics::calcTileCollection(ImageCollection *
return;
if (vertCol->currentImage != image)
{
- ImageVertexes *const vert = new ImageVertexes();
+ ImageVertexes *const vert = new ImageVertexes;
vertCol->currentImage = image;
vertCol->currentVert = vert;
vert->image = image;
@@ -820,7 +820,7 @@ void SDL2SoftwareGraphics::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;