summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-08-12 21:54:36 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-08-12 21:56:19 +0200
commitbdc14e11430b6c6538e6a2c721d22dabe83487e3 (patch)
treed4af54f13591590244b6063b99d78ae50861cb15 /src/resources/spritedef.h
parentbcfe75f0934a5a994c4c49df34eca6ee8ef68e6a (diff)
downloadmana-client-bdc14e11430b6c6538e6a2c721d22dabe83487e3.tar.gz
mana-client-bdc14e11430b6c6538e6a2c721d22dabe83487e3.tar.bz2
mana-client-bdc14e11430b6c6538e6a2c721d22dabe83487e3.tar.xz
mana-client-bdc14e11430b6c6538e6a2c721d22dabe83487e3.zip
Avoid string copy for SpriteDef::getAction
Pass std::string as const & when it makes sense.
Diffstat (limited to 'src/resources/spritedef.h')
-rw-r--r--src/resources/spritedef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h
index 70ad6ed6..18a70c9b 100644
--- a/src/resources/spritedef.h
+++ b/src/resources/spritedef.h
@@ -104,7 +104,7 @@ class SpriteDef : public Resource
/**
* Returns the specified action.
*/
- Action *getAction(std::string action) const;
+ Action *getAction(const std::string &action) const;
/**
* Converts a string into a SpriteDirection enum.