diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-17 00:14:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-17 03:20:49 +0300 |
commit | 56a2df097e5e4979884395f341d4e1c8bfcf7ba8 (patch) | |
tree | c8c02c10af910ab90e489376fd795064db69755c /src | |
parent | 1322627754578721637fcd25c512ae9ce77836a3 (diff) | |
download | mv-56a2df097e5e4979884395f341d4e1c8bfcf7ba8.tar.gz mv-56a2df097e5e4979884395f341d4e1c8bfcf7ba8.tar.bz2 mv-56a2df097e5e4979884395f341d4e1c8bfcf7ba8.tar.xz mv-56a2df097e5e4979884395f341d4e1c8bfcf7ba8.zip |
Add missing std::move in being.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/being/being.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 26ed555c2..010fb3182 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -118,6 +118,7 @@ #include "utils/foreach.h" #include "utils/gettext.h" #include "utils/likely.h" +#include "utils/stdmove.h" #include "utils/timer.h" #include "debug.h" @@ -2902,7 +2903,7 @@ void Being::setSpriteColorId(const unsigned int slot, BeingSlot &beingSlot = mSlots[slot]; beingSlot.spriteId = id; - beingSlot.color = color; + beingSlot.color = STD_MOVE(color); beingSlot.colorId = colorId; beingSlot.cardsId = CardsList(nullptr); recalcSpritesOrder(); @@ -2990,7 +2991,7 @@ void Being::setSpriteCards(const unsigned int slot, BeingSlot &beingSlot = mSlots[slot]; beingSlot.spriteId = id; - beingSlot.color = color; + beingSlot.color = STD_MOVE(color); beingSlot.colorId = colorId; beingSlot.cardsId = CardsList(cards); recalcSpritesOrder(); |