1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-21 23:32:35 +00:00

fix compatibility with clang-format 18 (#6690)

* fix clang-format

* compatibility with clang-format 17-18
This commit is contained in:
Cœur 2024-03-15 13:17:10 +08:00 committed by GitHub
parent 8e35e526c6
commit edc59ba5d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 6 deletions

View file

@ -44,7 +44,7 @@ public:
return iter != std::end(icons_) ? &iter->second : nullptr;
}
void load(
void load( //
std::string_view url_in,
IconFunc callback = [](Icon const&) { /*default callback is a no-op */ })
{

View file

@ -130,8 +130,7 @@ void RpcClient::sendNetworkRequest(TrVariantPtr req, QFutureInterface<RpcRespons
if (verbose_)
{
qInfo() << "sending"
<< "POST" << qPrintable(url_.path());
qInfo() << "sending POST " << qPrintable(url_.path());
for (QByteArray const& b : request_->rawHeaderList())
{

View file

@ -63,7 +63,7 @@ namespace libtransmission::test
bool waitFor(struct event_base* event_base, std::chrono::milliseconds msec)
{
return waitFor(
return waitFor( //
event_base,
[]() { return false; },
msec);
@ -596,7 +596,7 @@ TEST_F(DhtTest, usesBootstrapFile)
// Confirm that BootstrapNodeName gets pinged first.
auto const expected = getSockaddr(BootstrapNodeName, BootstrapNodePort);
auto& pinged = mediator.mock_dht_.pinged_;
waitFor(
waitFor( //
event_base_,
[&pinged]() { return !std::empty(pinged); },
5s);

View file

@ -42,7 +42,7 @@ protected:
void sleepMsec(std::chrono::milliseconds msec)
{
EXPECT_FALSE(waitFor(
EXPECT_FALSE(waitFor( //
evbase_.get(),
[]() { return false; },
msec));