lint: remove reinterpret_cast lint

Unhelpful.
This commit is contained in:
outfoxxed 2024-12-06 20:07:51 -08:00
parent be5e5fc4a5
commit 3fc1c914c7
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
15 changed files with 41 additions and 72 deletions

View file

@ -159,10 +159,7 @@ void GreetdConnection::onSocketError(QLocalSocket::LocalSocketError error) {
void GreetdConnection::onSocketReady() {
qint32 length = 0;
this->socket.read(
reinterpret_cast<char*>(&length), // NOLINT
sizeof(qint32)
);
this->socket.read(reinterpret_cast<char*>(&length), sizeof(qint32));
auto text = this->socket.read(length);
auto json = QJsonDocument::fromJson(text).object();
@ -248,10 +245,7 @@ void GreetdConnection::sendRequest(const QJsonObject& json) {
<< QJsonDocument(debugJson).toJson(QJsonDocument::Compact);
}
this->socket.write(
reinterpret_cast<char*>(&length), // NOLINT
sizeof(qint32)
);
this->socket.write(reinterpret_cast<char*>(&length), sizeof(qint32));
this->socket.write(text);
this->socket.flush();