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 | |
parent | bfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff) | |
download | manaverse-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/render')
-rw-r--r-- | src/render/mobileopengl2graphics.cpp | 6 | ||||
-rw-r--r-- | src/render/mobileopenglgraphics.cpp | 6 | ||||
-rw-r--r-- | src/render/modernopenglgraphics.cpp | 6 | ||||
-rw-r--r-- | src/render/normalopenglgraphics.cpp | 6 | ||||
-rw-r--r-- | src/render/nullopenglgraphics.cpp | 6 | ||||
-rw-r--r-- | src/render/sdl2graphics.cpp | 10 | ||||
-rw-r--r-- | src/render/sdl2softwaregraphics.cpp | 10 | ||||
-rw-r--r-- | src/render/sdlgraphics.cpp | 10 |
8 files changed, 30 insertions, 30 deletions
diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp index d077aaa9f..62a53fed6 100644 --- a/src/render/mobileopengl2graphics.cpp +++ b/src/render/mobileopengl2graphics.cpp @@ -690,7 +690,7 @@ void MobileOpenGL2Graphics::calcTileCollection(ImageCollection * return; if (vertCol->currentGLImage != image->mGLImage) { - ImageVertexes *const vert = new ImageVertexes(); + ImageVertexes *const vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -737,7 +737,7 @@ void MobileOpenGL2Graphics::calcPattern(ImageCollection *restrict const ImageVertexes *vert = nullptr; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -839,7 +839,7 @@ void MobileOpenGL2Graphics::calcWindow(ImageCollection *restrict const vertCol, return; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 55f7833d5..c22a7ac0f 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -718,7 +718,7 @@ void MobileOpenGLGraphics::calcTileCollection(ImageCollection * return; if (vertCol->currentGLImage != image->mGLImage) { - ImageVertexes *const vert = new ImageVertexes(); + ImageVertexes *const vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -764,7 +764,7 @@ void MobileOpenGLGraphics::calcPattern(ImageCollection *restrict const vertCol, ImageVertexes *vert = nullptr; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -866,7 +866,7 @@ void MobileOpenGLGraphics::calcWindow(ImageCollection *restrict const vertCol, return; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index 248d2f086..84843098c 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -675,7 +675,7 @@ void ModernOpenGLGraphics::calcTileCollection(ImageCollection * return; if (vertCol->currentGLImage != image->mGLImage) { - ImageVertexes *const vert = new ImageVertexes(); + ImageVertexes *const vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -729,7 +729,7 @@ void ModernOpenGLGraphics::calcPattern(ImageCollection *restrict const vertCol, ImageVertexes *vert = nullptr; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -827,7 +827,7 @@ void ModernOpenGLGraphics::calcWindow(ImageCollection *restrict const vertCol, return; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index 0de8d5a8d..429fa2256 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -1044,7 +1044,7 @@ void NormalOpenGLGraphics::calcTileCollection(ImageCollection * return; if (vertCol->currentGLImage != image->mGLImage) { - ImageVertexes *const vert = new ImageVertexes(); + ImageVertexes *const vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -1091,7 +1091,7 @@ void NormalOpenGLGraphics::calcPattern(ImageCollection *restrict const vertCol, ImageVertexes *vert = nullptr; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -1213,7 +1213,7 @@ void NormalOpenGLGraphics::calcWindow(ImageCollection *restrict const vertCol, return; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp index c371a88f5..c4985f758 100644 --- a/src/render/nullopenglgraphics.cpp +++ b/src/render/nullopenglgraphics.cpp @@ -726,7 +726,7 @@ void NullOpenGLGraphics::calcTileCollection(ImageCollection * return; if (vertCol->currentGLImage != image->mGLImage) { - ImageVertexes *const vert = new ImageVertexes(); + ImageVertexes *const vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -770,7 +770,7 @@ void NullOpenGLGraphics::calcPattern(ImageCollection *restrict const vertCol, ImageVertexes *vert = nullptr; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; @@ -933,7 +933,7 @@ void NullOpenGLGraphics::calcWindow(ImageCollection *restrict const vertCol, return; if (vertCol->currentGLImage != image->mGLImage) { - vert = new ImageVertexes(); + vert = new ImageVertexes; vertCol->currentGLImage = image->mGLImage; vertCol->currentVert = vert; vert->image = image; 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; 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; 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; |