From cd20fb3432498b8871401bdd65a143197e2a6538 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 25 Mar 2009 23:42:57 +0100 Subject: A host of code style fixes Mostly putting & and * in the right place and making some getters const. --- src/resources/iteminfo.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/resources/iteminfo.h') diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 51b39876..d84ee603 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -135,7 +135,7 @@ class ItemInfo void setName(const std::string &name) { mName = name; } - const std::string& getName() const + const std::string &getName() const { return mName; } void setParticleEffect(const std::string &particleEffect) @@ -146,19 +146,19 @@ class ItemInfo void setImageName(const std::string &imageName) { mImageName = imageName; } - const std::string& getImageName() const + const std::string &getImageName() const { return mImageName; } void setDescription(const std::string &description) { mDescription = description; } - const std::string& getDescription() const + const std::string &getDescription() const { return mDescription; } void setEffect(const std::string &effect) { mEffect = effect; } - const std::string& getEffect() const { return mEffect; } + const std::string &getEffect() const { return mEffect; } #ifdef TMWSERV_SUPPORT void setType(short type) @@ -167,10 +167,10 @@ class ItemInfo short getType() const { return mType; } #else - void setType(const std::string& type) + void setType(const std::string &type) { mType = type; } - const std::string& getType() const { return mType; } + const std::string &getType() const { return mType; } #endif void setWeight(short weight) @@ -185,7 +185,7 @@ class ItemInfo void setSprite(const std::string &animationFile, Gender gender) { mAnimationFiles[gender] = animationFile; } - const std::string& getSprite(Gender gender) const; + const std::string &getSprite(Gender gender) const; void setWeaponType(int); @@ -200,7 +200,7 @@ class ItemInfo void addSound(EquipmentSoundEvent event, const std::string &filename); - const std::string& getSound(EquipmentSoundEvent event) const; + const std::string &getSound(EquipmentSoundEvent event) const; protected: std::string mImageName; /**< The filename of the icon image. */ -- cgit v1.2.3-60-g2f50