summaryrefslogtreecommitdiff
path: root/src/resources/atlas/atlasmanager.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/resources/atlas/atlasmanager.cpp
parentbfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff)
downloadplus-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/resources/atlas/atlasmanager.cpp')
-rw-r--r--src/resources/atlas/atlasmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/atlas/atlasmanager.cpp b/src/resources/atlas/atlasmanager.cpp
index f724618b5..46894b24b 100644
--- a/src/resources/atlas/atlasmanager.cpp
+++ b/src/resources/atlas/atlasmanager.cpp
@@ -212,7 +212,7 @@ void AtlasManager::simpleSort(const std::string &restrict name,
int x = 0;
int y = 0;
int tempHeight = 0;
- TextureAtlas *atlas = new TextureAtlas();
+ TextureAtlas *atlas = new TextureAtlas;
std::vector<Image*>::const_iterator it = images.begin();
const std::vector<Image*>::const_iterator it_end = images.end();
for (it = images.begin(); it != it_end; ++ it)
@@ -247,7 +247,7 @@ void AtlasManager::simpleSort(const std::string &restrict name,
x = 0;
y = 0;
atlases.push_back(atlas);
- atlas = new TextureAtlas();
+ atlas = new TextureAtlas;
atlas->name = std::string("atlas_").append(name).append(
"_").append(img->getIdPath());
}