summaryrefslogtreecommitdiff
path: root/src/particle/imageparticle.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-04 15:50:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-04 15:50:56 +0300
commitd0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb (patch)
tree33e51821fd54d88d46df4e328f60ba148971ca55 /src/particle/imageparticle.cpp
parent39cec87cfa8b1605239f4b06388bbb07f2a16a89 (diff)
downloadplus-d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb.tar.gz
plus-d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb.tar.bz2
plus-d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb.tar.xz
plus-d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb.zip
Add stringmap typedefs.
Diffstat (limited to 'src/particle/imageparticle.cpp')
-rw-r--r--src/particle/imageparticle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/particle/imageparticle.cpp b/src/particle/imageparticle.cpp
index f6676303a..dbef1dd32 100644
--- a/src/particle/imageparticle.cpp
+++ b/src/particle/imageparticle.cpp
@@ -28,7 +28,7 @@
#include "debug.h"
-std::map<std::string, int> ImageParticle::imageParticleCountByName;
+StringIntMap ImageParticle::imageParticleCountByName;
ImageParticle::ImageParticle(Image *const image) :
Particle(),
@@ -39,7 +39,7 @@ ImageParticle::ImageParticle(Image *const image) :
mImage->incRef();
const std::string &name = mImage->getIdPath();
- std::map<std::string, int>::iterator it
+ StringIntMapIter it
= ImageParticle::imageParticleCountByName.find(name);
if (it == ImageParticle::imageParticleCountByName.end())
ImageParticle::imageParticleCountByName[name] = 1;
@@ -53,7 +53,7 @@ ImageParticle::~ImageParticle()
if (mImage)
{
const std::string &name = mImage->getIdPath();
- std::map<std::string, int>::iterator it
+ StringIntMapIter it
= ImageParticle::imageParticleCountByName.find(name);
if (it != ImageParticle::imageParticleCountByName.end())
{