mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Add noexcept qualifications in src/common
Apparently this can actually make a difference in some cases, and the C++ Core Guideliens recommend doing this on all default constructors, destructors, and all functions that can not throw (and thus also don't allocate).
This commit is contained in:
@@ -525,7 +525,8 @@ void Vst2Logger::log_event_response(
|
||||
}
|
||||
}
|
||||
|
||||
bool Vst2Logger::should_filter_event(bool is_dispatch, int opcode) const {
|
||||
bool Vst2Logger::should_filter_event(bool is_dispatch,
|
||||
int opcode) const noexcept {
|
||||
if (logger.verbosity >= Logger::Verbosity::all_events) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -87,5 +87,5 @@ class Vst2Logger {
|
||||
* Determine whether an event should be filtered based on the current
|
||||
* verbosity level.
|
||||
*/
|
||||
bool should_filter_event(bool is_dispatch, int opcode) const;
|
||||
bool should_filter_event(bool is_dispatch, int opcode) const noexcept;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user