summaryrefslogtreecommitdiffstats
path: root/src/AlsaDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:58:12 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:52 +0100
commit7c991383000520d03acfb7a1adfd834dd7c8e35e (patch)
tree4a80722b54b6e6192a67adaf43f0e1105adaf5b2 /src/AlsaDriver.cpp
parent96b68f0c39b02b41f96245cedcc156c60c3317e2 (diff)
downloadpatchage-7c991383000520d03acfb7a1adfd834dd7c8e35e.tar.gz
patchage-7c991383000520d03acfb7a1adfd834dd7c8e35e.tar.bz2
patchage-7c991383000520d03acfb7a1adfd834dd7c8e35e.zip
Replace boost::format with fmt
Diffstat (limited to 'src/AlsaDriver.cpp')
-rw-r--r--src/AlsaDriver.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp
index a705558..fc8fd34 100644
--- a/src/AlsaDriver.cpp
+++ b/src/AlsaDriver.cpp
@@ -21,15 +21,15 @@
#include "PatchageModule.hpp"
#include "PatchagePort.hpp"
-#include <boost/format.hpp>
+PATCHAGE_DISABLE_FMT_WARNINGS
+#include <fmt/core.h>
+PATCHAGE_RESTORE_WARNINGS
#include <cassert>
#include <set>
#include <string>
#include <utility>
-using boost::format;
-
AlsaDriver::AlsaDriver(Patchage* app)
: _app(app)
, _seq(nullptr)
@@ -427,8 +427,7 @@ AlsaDriver::connect(PatchagePort* src_port, PatchagePort* dst_port)
int ret = snd_seq_subscribe_port(_seq, subs);
if (ret < 0) {
_app->error_msg(
- (format("Alsa: Subscription failed (%1%).") % snd_strerror(ret))
- .str());
+ fmt::format("Alsa: Subscription failed ({}).", snd_strerror(ret)));
result = false;
}
@@ -505,8 +504,7 @@ AlsaDriver::create_refresh_port()
int ret = snd_seq_create_port(_seq, port_info);
if (ret) {
_app->error_msg(
- (format("Alsa: Error creating port (%1%): ") % snd_strerror(ret))
- .str());
+ fmt::format("Alsa: Error creating port ({})", snd_strerror(ret)));
return false;
}
@@ -517,9 +515,8 @@ AlsaDriver::create_refresh_port()
SND_SEQ_PORT_SYSTEM_ANNOUNCE);
if (ret) {
_app->error_msg(
- (format("Alsa: Failed to connect to system announce port (%1%)") %
- snd_strerror(ret))
- .str());
+ fmt::format("Alsa: Failed to connect to system announce port ({})",
+ snd_strerror(ret)));
return false;
}