voxelcore/src
Vyacheslav Ivanov 307ffc3c8f
fix: optimization: PVS-Studio warning V837
Replaced 'emplace' with 'try_emplace' to avoid unnecessary copies or moves when insertion fails.

The 'emplace' function does not guarantee that arguments will not be copied or moved if insertion is not successful. Using 'try_emplace' ensures that arguments are only copied or moved if the insertion actually takes place, thus improving performance.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
..
assets fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
audio fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
coders fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
content fix: optimization: PVS-Studio warning V823 2024-08-02 02:38:53 +03:00
data fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
debug Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
files fix: optimization: PVS-Studio warning V823 2024-08-02 02:38:53 +03:00
frontend fix: optimization: PVS-Studio warning V825 2024-08-02 01:57:43 +03:00
graphics fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
interfaces the final rename 2024-05-06 03:38:19 +03:00
items fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
lighting fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
logic fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
maths fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
objects fix: access to deleted Sensor 2024-08-01 17:10:30 +03:00
physics fix: access to deleted Sensor 2024-08-01 17:10:30 +03:00
util fix: optimization: PVS-Studio warning V832 2024-08-02 01:57:43 +03:00
voxels add block 'ambient-occlusion' property 2024-07-27 18:37:18 +03:00
window fix: optimization: PVS-Studio warning V837 2024-08-02 02:38:54 +03:00
world fix cameras loading 2024-07-12 00:20:22 +03:00
constants.hpp add entities raycast 2024-07-14 10:50:06 +03:00
core_defs.cpp refactor ContentBuilder and add entities support 2024-06-26 03:40:14 +03:00
core_defs.hpp fix: input F1..F25 key codes & add binding 'chunks.reload' 2024-06-05 19:29:35 +03:00
delegates.hpp the final rename 2024-05-06 03:38:19 +03:00
engine.cpp add 'normal' argument to on_use_on_block event 2024-07-29 15:23:04 +03:00
engine.hpp add packs resources (WIP) 2024-07-11 10:32:05 +03:00
settings.hpp add framerate control 2024-07-28 22:31:27 +03:00
typedefs.hpp add test entities prototype 2024-06-23 22:09:04 +03:00
voxel_engine.cpp converting block states to a bitfield 2024-05-31 11:13:36 +03:00