diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index f5d2b22d7..2555668e4 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -223,7 +223,7 @@ void LanLinkProvider::newConnection() configureSocket(socket); //This socket is still managed by us (and child of the QTcpServer), if //it disconnects before we manage to pass it to a LanDeviceLink, it's - //our responsability to delete it. We do so with this connection. + //our responsibility to delete it. We do so with this connection. connect(socket, SIGNAL(disconnected()), socket, SLOT(deleteLater())); connect(socket, SIGNAL(readyRead()), diff --git a/core/backends/lan/socketlinereader.h b/core/backends/lan/socketlinereader.h index b3be55a70..29b059a74 100644 --- a/core/backends/lan/socketlinereader.h +++ b/core/backends/lan/socketlinereader.h @@ -37,7 +37,7 @@ class SocketLineReader Q_OBJECT public: - SocketLineReader(QTcpSocket* socket, QObject* parent = 0); + explicit SocketLineReader(QTcpSocket* socket, QObject* parent = 0); QByteArray readLine() { return mPackages.dequeue(); } qint64 write(const QByteArray& data) { return mSocket->write(data); } diff --git a/core/backends/lan/uploadjob.cpp b/core/backends/lan/uploadjob.cpp index b0d35fcec..90978f22a 100644 --- a/core/backends/lan/uploadjob.cpp +++ b/core/backends/lan/uploadjob.cpp @@ -18,10 +18,11 @@ * along with this program. If not, see . */ +#include "uploadjob.h" + #include #include -#include "uploadjob.h" #include "core_debug.h" UploadJob::UploadJob(const QSharedPointer& source): KJob() diff --git a/core/backends/lan/uploadjob.h b/core/backends/lan/uploadjob.h index 12b6f7e67..40056b3a8 100644 --- a/core/backends/lan/uploadjob.h +++ b/core/backends/lan/uploadjob.h @@ -34,7 +34,7 @@ class UploadJob { Q_OBJECT public: - UploadJob(const QSharedPointer& source); + explicit UploadJob(const QSharedPointer& source); virtual void start(); QVariantMap getTransferInfo(); diff --git a/core/core_debug.h b/core/core_debug.h index 33504de03..93a0f1d1f 100644 --- a/core/core_debug.h +++ b/core/core_debug.h @@ -25,4 +25,4 @@ Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_CORE) -#endif //CORE_DEBUG_H \ No newline at end of file +#endif //CORE_DEBUG_H diff --git a/core/daemon.cpp b/core/daemon.cpp index af4c67b05..cb6999e12 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -31,7 +31,6 @@ #include "backends/lan/lanlinkprovider.h" #include "backends/loopback/loopbacklinkprovider.h" #include "device.h" -#include "networkpackage.h" #include "backends/devicelink.h" #include "backends/linkprovider.h" @@ -77,8 +76,8 @@ Daemon::Daemon(QObject *parent) //Listen to new devices Q_FOREACH (LinkProvider* a, d->mLinkProviders) { - connect(a, SIGNAL(onConnectionReceived(NetworkPackage, DeviceLink*)), - this, SLOT(onNewDeviceLink(NetworkPackage, DeviceLink*))); + connect(a, SIGNAL(onConnectionReceived(NetworkPackage,DeviceLink*)), + this, SLOT(onNewDeviceLink(NetworkPackage,DeviceLink*))); } setDiscoveryEnabled(true); diff --git a/core/daemon.h b/core/daemon.h index 674ca014e..d26316374 100644 --- a/core/daemon.h +++ b/core/daemon.h @@ -39,7 +39,7 @@ class KDECONNECTCORE_EXPORT Daemon Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.daemon") public: - Daemon(QObject *parent); + explicit Daemon(QObject *parent); ~Daemon(); public Q_SLOTS: diff --git a/core/dbushelper.cpp b/core/dbushelper.cpp index e188126d0..d1d24f478 100644 --- a/core/dbushelper.cpp +++ b/core/dbushelper.cpp @@ -30,4 +30,4 @@ void filterNonExportableCharacters(QString& s) s.replace(regexp,"_"); } -} \ No newline at end of file +} diff --git a/core/dbushelper.h b/core/dbushelper.h index 43b22860c..b287a9f65 100644 --- a/core/dbushelper.h +++ b/core/dbushelper.h @@ -26,4 +26,4 @@ namespace DbusHelper { void filterNonExportableCharacters(QString& s); } -#endif \ No newline at end of file +#endif diff --git a/core/device.cpp b/core/device.cpp index c2dc6090a..d53b3c520 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -140,7 +140,7 @@ void Device::reloadPlugins() //If we don't find intersection with the received on one end and the sent on the other, we don't //let the plugin stay //Also, if no capabilities are specified on the other end, we don't apply this optimizaton, as - //we asume that the other client doesn't know about capabilities. + //we assume that the other client doesn't know about capabilities. if (!m_incomingCapabilities.isEmpty() && !m_outgoingCapabilities.isEmpty() && (m_incomingCapabilities & outgoingInterfaces.toSet()).isEmpty() && (m_outgoingCapabilities & incomingInterfaces.toSet()).isEmpty() @@ -512,7 +512,7 @@ QString Device::iconForStatus(bool reachable, bool paired) const QString status = (reachable? (paired? QStringLiteral("connected") : QStringLiteral("disconnected")) : QStringLiteral("trusted")); QString type = type2str(deviceType); - return type+"-"+status; + return type+'-'+status; } void Device::setName(const QString &name) diff --git a/core/kdeconnectconfig.cpp b/core/kdeconnectconfig.cpp index 919505c8f..37f33d599 100644 --- a/core/kdeconnectconfig.cpp +++ b/core/kdeconnectconfig.cpp @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include @@ -114,7 +113,7 @@ KdeConnectConfig::KdeConnectConfig() QString KdeConnectConfig::name() { - QString defaultName = qgetenv("USER") + "@" + QHostInfo::localHostName(); + QString defaultName = qgetenv("USER") + '@' + QHostInfo::localHostName(); d->config->beginGroup("myself"); QString name = d->config->value("name", defaultName).toString(); d->config->endGroup(); diff --git a/core/networkpackage.h b/core/networkpackage.h index 6a0bf9c91..29549e5d2 100644 --- a/core/networkpackage.h +++ b/core/networkpackage.h @@ -52,7 +52,7 @@ public: const static QCA::EncryptionAlgorithm EncryptionAlgorithm; const static int ProtocolVersion; - NetworkPackage(const QString& type); + explicit NetworkPackage(const QString& type); static void createIdentityPackage(NetworkPackage*); diff --git a/interfaces/dbusinterfaces.h b/interfaces/dbusinterfaces.h index 2f51599f3..6d24d9bf9 100644 --- a/interfaces/dbusinterfaces.h +++ b/interfaces/dbusinterfaces.h @@ -42,7 +42,7 @@ class KDECONNECTINTERFACES_EXPORT DaemonDbusInterface { Q_OBJECT public: - DaemonDbusInterface(QObject* parent = 0); + explicit DaemonDbusInterface(QObject* parent = 0); virtual ~DaemonDbusInterface(); static QString activatedService(); @@ -57,7 +57,7 @@ class KDECONNECTINTERFACES_EXPORT DeviceDbusInterface Q_PROPERTY(bool isPaired READ isPaired NOTIFY pairingChangedProxy) public: - DeviceDbusInterface(const QString& deviceId, QObject* parent = 0); + explicit DeviceDbusInterface(const QString& deviceId, QObject* parent = 0); virtual ~DeviceDbusInterface(); Q_SCRIPTABLE QString id() const; @@ -75,7 +75,7 @@ class KDECONNECTINTERFACES_EXPORT DeviceBatteryDbusInterface { Q_OBJECT public: - DeviceBatteryDbusInterface(const QString& deviceId, QObject* parent = 0); + explicit DeviceBatteryDbusInterface(const QString& deviceId, QObject* parent = 0); virtual ~DeviceBatteryDbusInterface(); }; @@ -84,7 +84,7 @@ class KDECONNECTINTERFACES_EXPORT DeviceNotificationsDbusInterface { Q_OBJECT public: - DeviceNotificationsDbusInterface(const QString& deviceId, QObject* parent = 0); + explicit DeviceNotificationsDbusInterface(const QString& deviceId, QObject* parent = 0); virtual ~DeviceNotificationsDbusInterface(); }; @@ -102,7 +102,7 @@ class KDECONNECTINTERFACES_EXPORT SftpDbusInterface { Q_OBJECT public: - SftpDbusInterface(const QString& deviceId, QObject* parent = 0); + explicit SftpDbusInterface(const QString& deviceId, QObject* parent = 0); virtual ~SftpDbusInterface(); }; @@ -119,7 +119,7 @@ class KDECONNECTINTERFACES_EXPORT MprisDbusInterface Q_PROPERTY(int volume READ volume WRITE setVolume NOTIFY propertiesChangedProxy) Q_PROPERTY(int position READ position WRITE setPosition NOTIFY propertiesChangedProxy) public: - MprisDbusInterface(const QString& deviceId, QObject* parent = 0); + explicit MprisDbusInterface(const QString& deviceId, QObject* parent = 0); virtual ~MprisDbusInterface(); Q_SIGNALS: @@ -131,7 +131,7 @@ class KDECONNECTINTERFACES_EXPORT RemoteControlDbusInterface { Q_OBJECT public: - RemoteControlDbusInterface(const QString& deviceId, QObject* parent = 0); + explicit RemoteControlDbusInterface(const QString& deviceId, QObject* parent = 0); ~RemoteControlDbusInterface() override; }; @@ -141,7 +141,7 @@ class KDECONNECTINTERFACES_EXPORT LockDeviceDbusInterface Q_OBJECT Q_PROPERTY(bool isLocked READ isLocked WRITE setIsLocked NOTIFY lockedChangedProxy) public: - LockDeviceDbusInterface(const QString& deviceId, QObject* parent = 0); + explicit LockDeviceDbusInterface(const QString& deviceId, QObject* parent = 0); virtual ~LockDeviceDbusInterface(); Q_SIGNALS: diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp index 11b56daee..448343e2e 100644 --- a/interfaces/devicesmodel.cpp +++ b/interfaces/devicesmodel.cpp @@ -42,9 +42,9 @@ DevicesModel::DevicesModel(QObject *parent) //new ModelTest(this, this); - connect(this, SIGNAL(rowsRemoved(QModelIndex, int, int)), + connect(this, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SIGNAL(rowsChanged())); - connect(this, SIGNAL(rowsInserted(QModelIndex, int, int)), + connect(this, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SIGNAL(rowsChanged())); connect(m_dbusInterface, SIGNAL(deviceAdded(QString)), diff --git a/interfaces/devicesmodel.h b/interfaces/devicesmodel.h index e96af812d..625302582 100644 --- a/interfaces/devicesmodel.h +++ b/interfaces/devicesmodel.h @@ -57,7 +57,7 @@ public: Q_FLAGS(StatusFilterFlags) Q_ENUMS(StatusFilterFlag) - DevicesModel(QObject *parent = 0); + explicit DevicesModel(QObject *parent = 0); virtual ~DevicesModel(); void setDisplayFilter(int flags); diff --git a/interfaces/devicessortproxymodel.h b/interfaces/devicessortproxymodel.h index 54b7a0bf7..126112f88 100644 --- a/interfaces/devicessortproxymodel.h +++ b/interfaces/devicessortproxymodel.h @@ -30,7 +30,7 @@ class KDECONNECTINTERFACES_EXPORT DevicesSortProxyModel : public QSortFilterProx { Q_OBJECT public: - DevicesSortProxyModel(DevicesModel* devicesModel = Q_NULLPTR); + explicit DevicesSortProxyModel(DevicesModel* devicesModel = Q_NULLPTR); virtual bool lessThan(const QModelIndex& left, const QModelIndex& right) const; virtual bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const; virtual void setSourceModel(QAbstractItemModel *sourceModel); diff --git a/interfaces/interfaces_debug.h b/interfaces/interfaces_debug.h index 508323976..95e05f1da 100644 --- a/interfaces/interfaces_debug.h +++ b/interfaces/interfaces_debug.h @@ -25,4 +25,4 @@ Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_INTERFACES) -#endif //KDECONNECT_INTERFACE_DEBUG_H \ No newline at end of file +#endif //KDECONNECT_INTERFACE_DEBUG_H diff --git a/interfaces/modeltest.cpp b/interfaces/modeltest.cpp index 9259487c0..3305bf1d7 100644 --- a/interfaces/modeltest.cpp +++ b/interfaces/modeltest.cpp @@ -21,10 +21,10 @@ ** ****************************************************************************/ -#include - #include "modeltest.h" +#include + Q_DECLARE_METATYPE(QModelIndex) /*! @@ -34,28 +34,28 @@ ModelTest::ModelTest(QAbstractItemModel *_model, QObject *parent) : QObject(pare { Q_ASSERT(model); - connect(model, SIGNAL(columnsAboutToBeInserted(const QModelIndex &, int, int)), + connect(model, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)), this, SLOT(runAllTests())); - connect(model, SIGNAL(columnsAboutToBeRemoved(const QModelIndex &, int, int)), + connect(model, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)), this, SLOT(runAllTests())); - connect(model, SIGNAL(columnsInserted(const QModelIndex &, int, int)), + connect(model, SIGNAL(columnsInserted(QModelIndex,int,int)), this, SLOT(runAllTests())); - connect(model, SIGNAL(columnsRemoved(const QModelIndex &, int, int)), + connect(model, SIGNAL(columnsRemoved(QModelIndex,int,int)), this, SLOT(runAllTests())); - connect(model, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), + connect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(runAllTests())); - connect(model, SIGNAL(headerDataChanged(Qt::Orientation, int, int)), + connect(model, SIGNAL(headerDataChanged(Qt::Orientation,int,int)), this, SLOT(runAllTests())); - connect(model, SIGNAL(layoutAboutToBeChanged ()), this, SLOT(runAllTests())); - connect(model, SIGNAL(layoutChanged ()), this, SLOT(runAllTests())); - connect(model, SIGNAL(modelReset ()), this, SLOT(runAllTests())); - connect(model, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)), + connect(model, SIGNAL(layoutAboutToBeChanged()), this, SLOT(runAllTests())); + connect(model, SIGNAL(layoutChanged()), this, SLOT(runAllTests())); + connect(model, SIGNAL(modelReset()), this, SLOT(runAllTests())); + connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), this, SLOT(runAllTests())); - connect(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)), + connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), this, SLOT(runAllTests())); - connect(model, SIGNAL(rowsInserted(const QModelIndex &, int, int)), + connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(runAllTests())); - connect(model, SIGNAL(rowsRemoved(const QModelIndex &, int, int)), + connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(runAllTests())); // Special checks for inserting/removing @@ -64,14 +64,14 @@ ModelTest::ModelTest(QAbstractItemModel *_model, QObject *parent) : QObject(pare connect(model, SIGNAL(layoutChanged()), this, SLOT(layoutChanged())); - connect(model, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)), - this, SLOT(rowsAboutToBeInserted(const QModelIndex &, int, int))); - connect(model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)), - this, SLOT(rowsAboutToBeRemoved(const QModelIndex &, int, int))); - connect(model, SIGNAL(rowsInserted(const QModelIndex &, int, int)), - this, SLOT(rowsInserted(const QModelIndex &, int, int))); - connect(model, SIGNAL(rowsRemoved(const QModelIndex &, int, int)), - this, SLOT(rowsRemoved(const QModelIndex &, int, int))); + connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), + this, SLOT(rowsAboutToBeInserted(QModelIndex,int,int))); + connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), + this, SLOT(rowsAboutToBeRemoved(QModelIndex,int,int))); + connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), + this, SLOT(rowsInserted(QModelIndex,int,int))); + connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)), + this, SLOT(rowsRemoved(QModelIndex,int,int))); runAllTests(); } diff --git a/interfaces/modeltest.h b/interfaces/modeltest.h index 38b6b2bed..80a294be7 100644 --- a/interfaces/modeltest.h +++ b/interfaces/modeltest.h @@ -33,7 +33,7 @@ class ModelTest : public QObject Q_OBJECT public: - ModelTest(QAbstractItemModel *model, QObject *parent = 0); + explicit ModelTest(QAbstractItemModel *model, QObject *parent = 0); private Q_SLOTS: void nonDestructiveBasicTest(); diff --git a/interfaces/notificationsmodel.cpp b/interfaces/notificationsmodel.cpp index aba45732d..754502173 100644 --- a/interfaces/notificationsmodel.cpp +++ b/interfaces/notificationsmodel.cpp @@ -37,12 +37,12 @@ NotificationsModel::NotificationsModel(QObject* parent) //new ModelTest(this, this); - connect(this, SIGNAL(rowsInserted(QModelIndex, int, int)), + connect(this, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SIGNAL(rowsChanged())); - connect(this, SIGNAL(rowsRemoved(QModelIndex, int, int)), + connect(this, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SIGNAL(rowsChanged())); - connect(this, SIGNAL(dataChanged(QModelIndex, QModelIndex)), + connect(this, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SIGNAL(anyDismissableChanged())); diff --git a/interfaces/notificationsmodel.h b/interfaces/notificationsmodel.h index c54ef65f1..a4ec4f38c 100644 --- a/interfaces/notificationsmodel.h +++ b/interfaces/notificationsmodel.h @@ -47,7 +47,7 @@ public: DbusInterfaceRole, }; - NotificationsModel(QObject* parent = 0); + explicit NotificationsModel(QObject* parent = 0); virtual ~NotificationsModel(); QString deviceId() const; diff --git a/kio/kiokdeconnect.cpp b/kio/kiokdeconnect.cpp index 0ac875dae..f069abcce 100644 --- a/kio/kiokdeconnect.cpp +++ b/kio/kiokdeconnect.cpp @@ -143,7 +143,7 @@ void KioKdeconnect::listDevice() QVariantMap urls = urlreply.value(); - for (QVariantMap::iterator it = urls.begin(); it != urls.end(); it++) { + for (QVariantMap::iterator it = urls.begin(); it != urls.end(); ++it) { QString path = it.key(); QString name = it.value().toString(); @@ -170,7 +170,7 @@ void KioKdeconnect::listDir(const QUrl &url) { qCDebug(KDECONNECT_KIO) << "Listing..." << url; - /// Url is not used here becuase all we could care about the url is the host, and that's already + /// Url is not used here because all we could care about the url is the host, and that's already /// handled in @p setHost Q_UNUSED(url); diff --git a/plasmoid/declarativeplugin/processrunner.h b/plasmoid/declarativeplugin/processrunner.h index 20e86e69b..ff314a16a 100644 --- a/plasmoid/declarativeplugin/processrunner.h +++ b/plasmoid/declarativeplugin/processrunner.h @@ -27,7 +27,7 @@ class ProcessRunner : public QObject Q_OBJECT public: - ProcessRunner(QObject *parent = 0); + explicit ProcessRunner(QObject *parent = 0); ~ProcessRunner(); Q_INVOKABLE void runKdeconnectKCM(); diff --git a/plasmoid/declarativeplugin/responsewaiter.cpp b/plasmoid/declarativeplugin/responsewaiter.cpp index e909842c2..79892cb2c 100644 --- a/plasmoid/declarativeplugin/responsewaiter.cpp +++ b/plasmoid/declarativeplugin/responsewaiter.cpp @@ -1,11 +1,10 @@ +#include "responsewaiter.h" #include #include #include #include -#include "responsewaiter.h" - Q_DECLARE_METATYPE(QDBusPendingReply<>) Q_DECLARE_METATYPE(QDBusPendingReply) Q_DECLARE_METATYPE(QDBusPendingReply) diff --git a/plasmoid/declarativeplugin/responsewaiter.h b/plasmoid/declarativeplugin/responsewaiter.h index a2aec1994..365e93585 100644 --- a/plasmoid/declarativeplugin/responsewaiter.h +++ b/plasmoid/declarativeplugin/responsewaiter.h @@ -36,7 +36,7 @@ class DBusAsyncResponse : public QObject Q_PROPERTY(bool autoDelete READ autodelete WRITE setAutodelete) public: - DBusAsyncResponse(QObject* parent = 0); + explicit DBusAsyncResponse(QObject* parent = 0); virtual ~DBusAsyncResponse() {}; Q_INVOKABLE void setPendingCall(QVariant e); diff --git a/plugins/mpriscontrol/mpriscontrolplugin.cpp b/plugins/mpriscontrol/mpriscontrolplugin.cpp index 8318217cd..e543e7ae8 100644 --- a/plugins/mpriscontrol/mpriscontrolplugin.cpp +++ b/plugins/mpriscontrol/mpriscontrolplugin.cpp @@ -67,7 +67,7 @@ void MprisControlPlugin::addPlayer(const QString& service) sendPlayerList(); OrgFreedesktopDBusPropertiesInterface* freedesktopInterface = new OrgFreedesktopDBusPropertiesInterface(service, "/org/mpris/MediaPlayer2", QDBusConnection::sessionBus(), this); - connect(freedesktopInterface, SIGNAL(PropertiesChanged(QString, QVariantMap, QStringList)), this, SLOT(propertiesChanged(QString, QVariantMap))); + connect(freedesktopInterface, SIGNAL(PropertiesChanged(QString,QVariantMap,QStringList)), this, SLOT(propertiesChanged(QString,QVariantMap))); OrgMprisMediaPlayer2PlayerInterface* mprisInterface0 = new OrgMprisMediaPlayer2PlayerInterface(service, "/org/mpris/MediaPlayer2", QDBusConnection::sessionBus()); connect(mprisInterface0, SIGNAL(Seeked(qlonglong)), this, SLOT(seeked(qlonglong))); diff --git a/plugins/notifications/notification_debug.h b/plugins/notifications/notification_debug.h index 09da52f8f..febca382f 100644 --- a/plugins/notifications/notification_debug.h +++ b/plugins/notifications/notification_debug.h @@ -25,4 +25,4 @@ Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_NOTIFICATION) -#endif //NOTIFICATION_DEBUG_H \ No newline at end of file +#endif //NOTIFICATION_DEBUG_H diff --git a/plugins/sftp/mounter.cpp b/plugins/sftp/mounter.cpp index 916b102b5..a9c39f698 100644 --- a/plugins/sftp/mounter.cpp +++ b/plugins/sftp/mounter.cpp @@ -107,7 +107,7 @@ void Mounter::onPakcageReceived(const NetworkPackage& np) const QString program = "sshfs"; QString path; - if (np.has("multiPaths")) path = "/"; + if (np.has("multiPaths")) path = '/'; else path = np.get("path"); const QStringList arguments = QStringList() diff --git a/plugins/sftp/sftp_debug.h b/plugins/sftp/sftp_debug.h index 30da8f815..b57249414 100644 --- a/plugins/sftp/sftp_debug.h +++ b/plugins/sftp/sftp_debug.h @@ -25,4 +25,4 @@ Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SFTP) -#endif //SFTP_DEBUG_H \ No newline at end of file +#endif //SFTP_DEBUG_H diff --git a/plugins/share/autoclosingqfile.h b/plugins/share/autoclosingqfile.h index bea1ea193..19f4fedba 100644 --- a/plugins/share/autoclosingqfile.h +++ b/plugins/share/autoclosingqfile.h @@ -28,7 +28,7 @@ class AutoClosingQFile : public QFile Q_OBJECT public: - AutoClosingQFile(const QString &name); + explicit AutoClosingQFile(const QString &name); qint64 readData(char* data, qint64 maxlen) Q_DECL_OVERRIDE { qint64 read = QFile::readData(data, maxlen); if (read == -1 || read == bytesAvailable()) { diff --git a/plugins/share/share_debug.h b/plugins/share/share_debug.h index d6cf4161e..92e7b1526 100644 --- a/plugins/share/share_debug.h +++ b/plugins/share/share_debug.h @@ -25,4 +25,4 @@ Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_SHARE) -#endif //SHARE_DEBUG_H \ No newline at end of file +#endif //SHARE_DEBUG_H