mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Fix many issues reported by clang-tidy (#7189)
* Fix many issues reported by clang-tidy We have many issues in code related to some performance to float <-> double. Clang-tidy reported it in performance-type-promotion-in-math-fn I fixed many of them. It's not ready for a promote to blocking Also fix some value which should be const-ref
This commit is contained in:
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
// Append chat line
|
||||
// Removes oldest chat line if scrollback size is reached
|
||||
void addLine(std::wstring name, std::wstring text);
|
||||
void addLine(const std::wstring &name, const std::wstring &text);
|
||||
|
||||
// Remove all chat lines
|
||||
void clear();
|
||||
|
Reference in New Issue
Block a user