Apply all the clang-tidy misc-* fixes
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
constexpr char Iid::separator[];
|
constexpr char Iid::separator[];
|
||||||
|
|
||||||
Iid::Iid(std::string local, std::string server, Iid::Type type):
|
Iid::Iid(std::string local, std::string server, Iid::Type type):
|
||||||
type(std::move(type)),
|
type(type),
|
||||||
local(std::move(local)),
|
local(std::move(local)),
|
||||||
server(std::move(server))
|
server(std::move(server))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ void IrcClient::send_message(IrcMessage&& message)
|
|||||||
std::string res;
|
std::string res;
|
||||||
if (!message.prefix.empty())
|
if (!message.prefix.empty())
|
||||||
res += ":" + std::move(message.prefix) + " ";
|
res += ":" + std::move(message.prefix) + " ";
|
||||||
res += std::move(message.command);
|
res += message.command;
|
||||||
for (const std::string& arg: message.arguments)
|
for (const std::string& arg: message.arguments)
|
||||||
{
|
{
|
||||||
if (arg.find(" ") != std::string::npos ||
|
if (arg.find(" ") != std::string::npos ||
|
||||||
@@ -889,7 +889,7 @@ void IrcClient::on_part(const IrcMessage& message)
|
|||||||
// channel pointer is now invalid
|
// channel pointer is now invalid
|
||||||
channel = nullptr;
|
channel = nullptr;
|
||||||
}
|
}
|
||||||
this->bridge.send_muc_leave(iid, std::move(nick), std::move(txt), self);
|
this->bridge.send_muc_leave(iid, std::move(nick), txt, self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ bool BasicCredentialsManager::try_to_open_one_ca_bundle(const std::vector<std::s
|
|||||||
// because the certificate is signed by an issuer that was ignored.
|
// because the certificate is signed by an issuer that was ignored.
|
||||||
try {
|
try {
|
||||||
Botan::X509_Certificate cert(bundle);
|
Botan::X509_Certificate cert(bundle);
|
||||||
BasicCredentialsManager::certificate_store.add_certificate(std::move(cert));
|
BasicCredentialsManager::certificate_store.add_certificate(cert);
|
||||||
} catch (const Botan::Decoding_Error& error) {
|
} catch (const Botan::Decoding_Error& error) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ namespace
|
|||||||
using namespace std::string_literals;
|
using namespace std::string_literals;
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
namespace ph = std::placeholders;
|
|
||||||
|
|
||||||
TCPSocketHandler::TCPSocketHandler(std::shared_ptr<Poller>& poller):
|
TCPSocketHandler::TCPSocketHandler(std::shared_ptr<Poller>& poller):
|
||||||
SocketHandler(poller, -1),
|
SocketHandler(poller, -1),
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
TimedEvent::TimedEvent(std::chrono::steady_clock::time_point&& time_point,
|
TimedEvent::TimedEvent(std::chrono::steady_clock::time_point&& time_point,
|
||||||
std::function<void()> callback, std::string name):
|
std::function<void()> callback, std::string name):
|
||||||
time_point(std::move(time_point)),
|
time_point(time_point),
|
||||||
callback(std::move(callback)),
|
callback(std::move(callback)),
|
||||||
repeat(false),
|
repeat(false),
|
||||||
repeat_delay(0),
|
repeat_delay(0),
|
||||||
@@ -16,7 +16,7 @@ TimedEvent::TimedEvent(std::chrono::milliseconds&& duration,
|
|||||||
time_point(std::chrono::steady_clock::now() + duration),
|
time_point(std::chrono::steady_clock::now() + duration),
|
||||||
callback(std::move(callback)),
|
callback(std::move(callback)),
|
||||||
repeat(true),
|
repeat(true),
|
||||||
repeat_delay(std::move(duration)),
|
repeat_delay(duration),
|
||||||
name(std::move(name))
|
name(std::move(name))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user