summaryrefslogtreecommitdiff
path: root/src/particle/imageparticle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-27 18:37:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-27 18:37:26 +0300
commit12f2ce912aa1a7e158f06aa20396f213abdd2583 (patch)
treecd75248717e990fee8b7418df35eb5d27c195336 /src/particle/imageparticle.h
parent3605741892b995144111d4d885cf88063c3f4379 (diff)
downloadplus-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.gz
plus-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.bz2
plus-12f2ce912aa1a7e158f06aa20396f213abdd2583.tar.xz
plus-12f2ce912aa1a7e158f06aa20396f213abdd2583.zip
Add restrict keyword to particle.
Diffstat (limited to 'src/particle/imageparticle.h')
-rw-r--r--src/particle/imageparticle.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/particle/imageparticle.h b/src/particle/imageparticle.h
index b6b74362b..637004558 100644
--- a/src/particle/imageparticle.h
+++ b/src/particle/imageparticle.h
@@ -41,7 +41,7 @@ class ImageParticle notfinal : public Particle
* @param map the map this particle appears on
* @param image an Image instance, may not be NULL
*/
- explicit ImageParticle(Image *const image);
+ explicit ImageParticle(Image *restrict const image);
A_DELETE_COPY(ImageParticle)
@@ -53,16 +53,17 @@ class ImageParticle notfinal : public Particle
/**
* Draws the particle image
*/
- virtual void draw(Graphics *const graphics,
+ virtual void draw(Graphics *restrict const graphics,
const int offsetX,
- const int offsetY) const override final A_NONNULL(2);
+ const int offsetY) const
+ restrict2 override final A_NONNULL(2);
- void setAlpha(const float alpha) override final
+ void setAlpha(const float alpha) restrict2 override final
{ mAlpha = alpha; }
static StringIntMap imageParticleCountByName;
protected:
- Image *mImage; /**< The image used for this particle. */
+ Image *restrict mImage; /**< The image used for this particle. */
};
#endif // PARTICLE_IMAGEPARTICLE_H