From e7482b08370a87941f8d100d1f833f2128cb901c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Oct 2016 20:47:42 +0300 Subject: Add missing consts references. --- src/being/being.cpp | 6 +++--- src/being/being.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/being') diff --git a/src/being/being.cpp b/src/being/being.cpp index c401f9d0b..578679f42 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -2741,7 +2741,7 @@ void Being::unSetSprite(const unsigned int slot) restrict2 // set sprite id, use color string, reset cards void Being::setSpriteColor(const unsigned int slot, const int id, - std::string color) restrict2 + const std::string &color) restrict2 { if (!charServerHandler || slot >= charServerHandler->maxSprite()) return; @@ -2898,7 +2898,7 @@ void Being::setSpriteColorId(const unsigned int slot, // set sprite id, colors from cards, cards void Being::setSpriteCards(const unsigned int slot, const int id, - CardsList cards) restrict2 + const CardsList &cards) restrict2 { if (!charServerHandler || slot >= charServerHandler->maxSprite()) return; @@ -4902,7 +4902,7 @@ void Being::addItemParticles(const int id, void Being::addItemParticlesCards(const int id, const SpriteDisplay &restrict display, - CardsList cards) restrict2 + const CardsList &cards) restrict2 { const SpriteParticleInfoIter it = mSpriteParticles.find(id); ParticleInfo *restrict pi = nullptr; diff --git a/src/being/being.h b/src/being/being.h index 06264b1d5..581386d3e 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -327,7 +327,7 @@ class Being notfinal : public ActorSprite, void setSpriteColor(const unsigned int slot, const int id, - std::string color) restrict2; + const std::string &color) restrict2; void setSpriteColorId(const unsigned int slot, const int id, @@ -335,7 +335,7 @@ class Being notfinal : public ActorSprite, void setSpriteCards(const unsigned int slot, const int id, - CardsList cards) restrict2; + const CardsList &restrict cards) restrict2; void setSpriteId(const unsigned int slot, const int id) restrict2; @@ -1093,7 +1093,7 @@ class Being notfinal : public ActorSprite, void addItemParticlesCards(const int id, const SpriteDisplay &restrict display, - CardsList cards) restrict2; + const CardsList &restrict cards) restrict2; void removeAllItemsParticles() restrict2; -- cgit v1.2.3-60-g2f50