Skip to content

Commit

Permalink
lib/fmt: remove the rest of the broken use of FMT_STRING
Browse files Browse the repository at this point in the history
Fixes: 9db7144
Signed-off-by: Alfred Wingate <[email protected]>
  • Loading branch information
parona-source committed Jan 18, 2025
1 parent da6efd6 commit 5de0909
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/command/FingerprintCommands.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class GetChromaprintCommand final
void Run() override;

void SendResponse(Response &r) noexcept override {
r.Fmt(FMT_STRING("chromaprint: {}\n"),
r.Fmt("chromaprint: {}\n",
GetFingerprint());
}

Expand Down
4 changes: 2 additions & 2 deletions src/command/NeighborCommands.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ handle_listneighbors(Client &client, [[maybe_unused]] Request args, Response &r)
}

for (const auto &i : neighbors->GetList())
r.Fmt(FMT_STRING("neighbor: {}\n"
"name: {}\n"),
r.Fmt("neighbor: {}\n"
"name: {}\n",
i.uri,
i.display_name);
return CommandResult::OK;
Expand Down
2 changes: 1 addition & 1 deletion src/output/plugins/PipeWireOutputPlugin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ PipeWireOutput::ParamChanged([[maybe_unused]] uint32_t id,
::SetVolume(*stream, channels, volume);
} catch (...) {
FmtError(pipewire_output_domain,
FMT_STRING("Failed to restore volume: {}"),
"Failed to restore volume: {}",
std::current_exception());
}
}
Expand Down

0 comments on commit 5de0909

Please sign in to comment.