From 4df1e68047488ec00a264c076bb3222715f42295 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Mar 2017 16:40:52 +0300 Subject: Fix new style issue detected by mplint. new class() -> new class --- src/render/sdl2softwaregraphics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/render/sdl2softwaregraphics.cpp') 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; -- cgit v1.2.3-60-g2f50