From 28ff6fa48469e6595bc619e0785d9546e6b87494 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 19 May 2022 22:08:12 +0200 Subject: [PATCH] Fix bad format string --- src/voip/CallDevices.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/voip/CallDevices.cpp b/src/voip/CallDevices.cpp index b0c90d84..4ab3adc5 100644 --- a/src/voip/CallDevices.cpp +++ b/src/voip/CallDevices.cpp @@ -157,8 +157,7 @@ removeDevice(T &sources, GstDevice *device, bool changed) if (auto it = std::find_if( sources.begin(), sources.end(), [device](const auto &s) { return s.device == device; }); it != sources.end()) { - nhlog::ui()->debug( - std::string("WebRTC: device ") + (changed ? "changed: " : "removed: ") + "{}", it->name); + nhlog::ui()->debug("WebRTC: device {}: {}", (changed ? "changed" : "removed"), it->name); gst_object_unref(device); sources.erase(it); return true;