Prevent allocations in Vst3Logger::log_query_interface

String constants will be converted to `std::string` because it's not
constexpr yet, and that will allocate for longer strings. Since this
function only prints something when `YABRIDGE_DEBUG_LEVEL` is set to 2
or higher that seems like a waste.
This commit is contained in:
Robbert van der Helm
2021-05-31 18:07:19 +02:00
parent 2bf1c4c5eb
commit 5f4ffed90b
3 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -82,8 +82,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
- Fixed the _PG-8X_ VST2 plugin freezing in **REAPER** when loading the plugin.
- Fixed _Voxengo_ VST2 plugins in **Renoise** freezing when loading a project or
when otherwise restoring plugin state.
- Fixed logging traces in the VST2 audio processing functions causing
allocations even when `YABRIDGE_DEBUG_LEVEL` is not set to 2.
- Fixed logging traces in the VST2 audio processing functions and VST3 query
interfaces causing allocations even when `YABRIDGE_DEBUG_LEVEL` is not set to 2.
- Fixed builds on Wine 6.8 because of internal changes to Wine's `windows.h`
implementation.