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:
parent
8e35e526c6
commit
edc59ba5d8
4 changed files with 5 additions and 6 deletions
|
@ -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 */ })
|
||||
{
|
||||
|
|
|
@ -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())
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -42,7 +42,7 @@ protected:
|
|||
|
||||
void sleepMsec(std::chrono::milliseconds msec)
|
||||
{
|
||||
EXPECT_FALSE(waitFor(
|
||||
EXPECT_FALSE(waitFor( //
|
||||
evbase_.get(),
|
||||
[]() { return false; },
|
||||
msec));
|
||||
|
|
Loading…
Reference in a new issue