From ce668ec02289b0d0aa8da1995a84520fbcc419cd Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 5 May 2021 19:04:49 +0200 Subject: [PATCH] Clean up style --- src/common/logging/common.cpp | 2 +- src/plugin/bridges/vst2.cpp | 2 +- src/plugin/bridges/vst3-impls/plugin-proxy.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/logging/common.cpp b/src/common/logging/common.cpp index 618dee02..c251c90b 100644 --- a/src/common/logging/common.cpp +++ b/src/common/logging/common.cpp @@ -104,7 +104,7 @@ void Logger::log(const std::string& message) { if (prefix_timestamp) { const auto current_time = std::chrono::system_clock::now(); - const std::time_t timestamp = + const time_t timestamp = std::chrono::system_clock::to_time_t(current_time); // How did C++ manage to get time formatting libraries without a way to diff --git a/src/plugin/bridges/vst2.cpp b/src/plugin/bridges/vst2.cpp index 67e12c1d..a599ed5e 100644 --- a/src/plugin/bridges/vst2.cpp +++ b/src/plugin/bridges/vst2.cpp @@ -579,7 +579,7 @@ void Vst2PluginBridge::do_process(T** inputs, T** outputs, int sample_frames) { // We'll synchronize the scheduling priority of the audio thread on the Wine // plugin host with that of the host's audio thread every once in a while std::optional new_realtime_priority; - const time_t now = std::time(nullptr); + const time_t now = time(nullptr); if (now > last_audio_thread_priority_synchronization + audio_thread_priority_synchronization_interval) { new_realtime_priority = get_realtime_priority(); diff --git a/src/plugin/bridges/vst3-impls/plugin-proxy.cpp b/src/plugin/bridges/vst3-impls/plugin-proxy.cpp index 627ce6f0..34411f05 100644 --- a/src/plugin/bridges/vst3-impls/plugin-proxy.cpp +++ b/src/plugin/bridges/vst3-impls/plugin-proxy.cpp @@ -179,7 +179,7 @@ Vst3PluginProxyImpl::process(Steinberg::Vst::ProcessData& data) { // We'll synchronize the scheduling priority of the audio thread on the Wine // plugin host with that of the host's audio thread every once in a while std::optional new_realtime_priority = std::nullopt; - time_t now = std::time(nullptr); + time_t now = time(nullptr); if (now > last_audio_thread_priority_synchronization + audio_thread_priority_synchronization_interval) { new_realtime_priority = get_realtime_priority();