mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 01:45:36 +02:00
Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)
* Also remove 2 non declared but defined functions * Make some functions around const ref changes const
This commit is contained in:
12
src/sound.h
12
src/sound.h
@@ -34,13 +34,15 @@ public:
|
||||
|
||||
struct SimpleSoundSpec
|
||||
{
|
||||
SimpleSoundSpec(const std::string &name = "", float gain = 1.0) :
|
||||
name(name),
|
||||
gain(gain)
|
||||
{}
|
||||
|
||||
bool exists() const { return name != ""; }
|
||||
|
||||
std::string name;
|
||||
float gain;
|
||||
SimpleSoundSpec(std::string name = "", float gain = 1.0) : name(name), gain(gain)
|
||||
{
|
||||
}
|
||||
bool exists() { return name != ""; }
|
||||
// Serialization intentionally left out
|
||||
};
|
||||
|
||||
class ISoundManager
|
||||
|
Reference in New Issue
Block a user