diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-13 23:08:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-13 23:08:46 +0300 |
commit | 02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a (patch) | |
tree | b029ec4c7196685d6a0331835640125e00829e08 /src | |
parent | d74ca472f54ae0f5c69ba6a377d896234725df70 (diff) | |
download | ManaVerse-02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a.tar.gz ManaVerse-02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a.tar.bz2 ManaVerse-02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a.tar.xz ManaVerse-02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a.zip |
Fix to avoid false positives in automatic checking software.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsvertexes.cpp | 9 | ||||
-rw-r--r-- | src/graphicsvertexes.h | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp index 4a299620d..a74d6558b 100644 --- a/src/graphicsvertexes.cpp +++ b/src/graphicsvertexes.cpp @@ -234,6 +234,15 @@ std::vector<DoubleRect*> *GraphicsVertexes::getRectsSDL() return &sdl[mPtr].mList; } +ImageVertexes::ImageVertexes() : + image(nullptr) +{ + sdl.reserve(30); +#ifdef USE_OPENGL + ogl = new OpenGLGraphicsVertexes(); +#endif +} + ImageVertexes::~ImageVertexes() { delete_all(sdl); diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h index 452cebc29..a4ce65013 100644 --- a/src/graphicsvertexes.h +++ b/src/graphicsvertexes.h @@ -123,14 +123,7 @@ typedef std::vector<DoubleRect*> DoubleRects; class ImageVertexes { public: - ImageVertexes() : - image(nullptr) - { - sdl.reserve(30); -#ifdef USE_OPENGL - ogl = new OpenGLGraphicsVertexes(); -#endif - } + ImageVertexes(); ~ImageVertexes(); |