voxelcore/src/window
Vyacheslav Ivanov 63ede5e27d 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-03 17:45:26 +03:00
..
Camera.cpp fixes 2024-05-24 05:22:14 +03:00
Camera.hpp add doc/**/cameras.md & update cameras library 2024-07-22 16:50:03 +03:00
Events.cpp fix: optimization: PVS-Studio warning V837 2024-08-03 17:45:26 +03:00
Events.hpp remove old bindings format support 2024-06-07 14:13:49 +03:00
input.cpp fix: input F1..F25 key codes & add binding 'chunks.reload' 2024-06-05 19:29:35 +03:00
input.hpp fix: optimization: PVS-Studio warning V832 2024-08-03 17:44:10 +03:00
Window.cpp Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Window.hpp Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00