mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
fix: optimization: PVS-Studio warning V801
Redefined the second function argument as a const reference instead of by value to improve performance. Reported by: PVS-Studio Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
c3e4341a04
commit
35d26a771f
2 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ namespace files {
|
|||
uint append_bytes(const fs::path& file, const ubyte* data, size_t size);
|
||||
|
||||
/// @brief Write string to the file
|
||||
bool write_string(const fs::path& filename, const std::string content);
|
||||
bool write_string(const fs::path& filename, const std::string& content);
|
||||
|
||||
/// @brief Write dynamic data to the JSON file
|
||||
/// @param nice if true, human readable format will be used, otherwise minimal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue