mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
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
This commit is contained in:
@@ -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 != ""; }
|
||||
|
||||
|
Reference in New Issue
Block a user