mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency. Reported by: PVS-Studio Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
5b325ac2bc
commit
2c1103307f
42 changed files with 173 additions and 144 deletions
|
|
@ -13,8 +13,8 @@ namespace util {
|
|||
/// @brief Function used for error messages
|
||||
std::string quote(const std::string& s);
|
||||
|
||||
std::wstring lfill(std::wstring s, uint length, wchar_t c);
|
||||
std::wstring rfill(std::wstring s, uint length, wchar_t c);
|
||||
std::wstring lfill(const std::wstring& s, uint length, wchar_t c);
|
||||
std::wstring rfill(const std::wstring& s, uint length, wchar_t c);
|
||||
|
||||
uint encode_utf8(uint32_t c, ubyte* bytes);
|
||||
uint32_t decode_utf8(uint& size, const char* bytes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue