summaryrefslogtreecommitdiff
path: root/src/sound.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-04-21 23:40:48 +0200
committerGitHub <noreply@github.com>2017-04-21 23:40:48 +0200
commitdc0e9097d3144a3dda81039f666ee43ba29cbc36 (patch)
tree25f9db4f6357826bfb5456a642b522bb0b235d6f /src/sound.h
parentf151b2322003bbc89c2cd3c603ef1e1ab9d46439 (diff)
downloadminetest-dc0e9097d3144a3dda81039f666ee43ba29cbc36.tar.gz
minetest-dc0e9097d3144a3dda81039f666ee43ba29cbc36.tar.bz2
minetest-dc0e9097d3144a3dda81039f666ee43ba29cbc36.zip
Fix various performance issues reported by cppcheck + code style (CI) (#5635)
* Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function
Diffstat (limited to 'src/sound.h')
-rw-r--r--src/sound.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sound.h b/src/sound.h
index d13799eac..98f7692d5 100644
--- a/src/sound.h
+++ b/src/sound.h
@@ -34,10 +34,10 @@ public:
struct SimpleSoundSpec
{
- SimpleSoundSpec(const std::string &name = "", float gain = 1.0) :
- name(name),
- gain(gain)
- {}
+ SimpleSoundSpec(const std::string &name = "", float gain = 1.0)
+ : name(name), gain(gain)
+ {
+ }
bool exists() const { return name != ""; }