Clang-Tidy and Clazy fixes

This commit is contained in:
Jonas Kvinge
2021-06-20 19:04:08 +02:00
parent 755abec636
commit 1295033fae
374 changed files with 1304 additions and 900 deletions

View File

@@ -36,7 +36,7 @@
#include "core/logging.h"
#include "mtpconnection.h"
MtpConnection::MtpConnection(const QUrl &url) : device_(nullptr) {
MtpConnection::MtpConnection(const QUrl &url, QObject *parent) : QObject(parent), device_(nullptr) {
QString hostname = url.host();
// Parse the URL
@@ -72,7 +72,7 @@ MtpConnection::MtpConnection(const QUrl &url) : device_(nullptr) {
raw_device->bus_location = bus_location;
raw_device->devnum = device_num;
device_ = LIBMTP_Open_Raw_Device(raw_device);
device_ = LIBMTP_Open_Raw_Device(raw_device); // NOLINT(clang-analyzer-unix.Malloc)
return;
}