diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-10 16:40:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-10 16:40:52 +0300 |
commit | 4df1e68047488ec00a264c076bb3222715f42295 (patch) | |
tree | 22ea99ebcd00a6c9d6da0729706b765a49085c5f /src/render/sdlgraphics.cpp | |
parent | bfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff) | |
download | plus-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/sdlgraphics.cpp')
-rw-r--r-- | src/render/sdlgraphics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp index 2e0069043..533912760 100644 --- a/src/render/sdlgraphics.cpp +++ b/src/render/sdlgraphics.cpp @@ -622,7 +622,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 &srcRect = r->src; srcRect.x = CAST_S16(srcX); srcRect.y = CAST_S16(srcY); @@ -656,7 +656,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; @@ -697,7 +697,7 @@ void SDLGraphics::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); @@ -723,7 +723,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; @@ -800,7 +800,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; |