summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-10-28 20:47:42 +0300
committerAndrei Karas <akaras@inbox.ru>2016-10-28 20:47:42 +0300
commite7482b08370a87941f8d100d1f833f2128cb901c (patch)
tree93c23722bc7e3b56a9e5eaef1d12e770e0db9902 /src
parent6f496c4919a62edbb73e9adbc3ddd84484afc756 (diff)
downloadplus-e7482b08370a87941f8d100d1f833f2128cb901c.tar.gz
plus-e7482b08370a87941f8d100d1f833f2128cb901c.tar.bz2
plus-e7482b08370a87941f8d100d1f833f2128cb901c.tar.xz
plus-e7482b08370a87941f8d100d1f833f2128cb901c.zip
Add missing consts references.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp6
-rw-r--r--src/being/being.h6
-rw-r--r--src/gui/windows/questswindow.cpp2
3 files changed, 7 insertions, 7 deletions
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;
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index c35bb80b1..c8ce4246e 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -478,7 +478,7 @@ void QuestsWindow::showQuest(const QuestItem *const quest)
const std::string var1 = toString(var.var1);
const std::string var2 = toString(var.var2);
const std::string var3 = toString(var.var3);
- const std::string timeStr = timeDiffToString(var.time1).c_str();
+ const std::string timeStr = timeDiffToString(var.time1);
mText->clearRows();
FOR_EACH (std::vector<QuestItemText>::const_iterator, it, texts)
{