mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +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:
@@ -232,7 +232,7 @@ inline std::vector<std::basic_string<T> > str_split(
|
||||
*/
|
||||
inline std::string lowercase(const std::string &str)
|
||||
{
|
||||
std::string s2;
|
||||
std::string s2 = "";
|
||||
|
||||
s2.reserve(str.size());
|
||||
|
||||
|
Reference in New Issue
Block a user