Commit 6a171114 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Warning--

parent f2a5ec6b
......@@ -67,7 +67,7 @@ class ComicApplet : public Plasma::Applet, public Plasma::DataEngineConsumer
Q_PROPERTY(QStringList tabIdentifiers READ tabIdentifiers WRITE setTabIdentifiers NOTIFY tabIdentifiersChanged)
Q_PROPERTY(int checkNewComicStripsInterval READ checkNewComicStripsInterval WRITE setCheckNewComicStripsInterval NOTIFY checkNewComicStripsIntervalChanged)
Q_PROPERTY(int providerUpdateInterval READ providerUpdateInterval WRITE setProviderUpdateInterval NOTIFY providerUpdateIntervalChanged)
Q_PROPERTY(int maxComicLimit READ maxComicLimit WRITE setMaxComicLimit NOTIFY maxComicLimitChanged);
Q_PROPERTY(int maxComicLimit READ maxComicLimit WRITE setMaxComicLimit NOTIFY maxComicLimitChanged)
public:
ComicApplet( QObject *parent, const QVariantList &args );
......
......@@ -32,7 +32,7 @@ class GroupedAppletsContainer : public Plasma::Applet
Q_PROPERTY(QQuickItem *internalContainmentItem READ internalContainmentItem NOTIFY internalContainmentItemChanged)
public:
GroupedAppletsContainer(QObject *parent, const QVariantList &args);
explicit GroupedAppletsContainer(QObject *parent, const QVariantList &args);
~GroupedAppletsContainer() override;
void init() override;
......
......@@ -29,7 +29,7 @@ class GroupingContainment : public Plasma::Containment
{
Q_OBJECT
public:
GroupingContainment( QObject *parent, const QVariantList &args );
explicit GroupingContainment( QObject *parent, const QVariantList &args );
~GroupingContainment() override;
void init() override;
......
......@@ -29,7 +29,6 @@
#include <QRegularExpression>
#include <QCryptographicHash>
//#include <KUrl>
#include <KIO/StoredTransferJob>
#include <KIO/Job>
......
......@@ -28,7 +28,7 @@ class KonsoleProfilesEngine : public Plasma::DataEngine
Q_OBJECT
public:
KonsoleProfilesEngine(QObject *parent, const QVariantList &args);
explicit KonsoleProfilesEngine(QObject *parent, const QVariantList &args);
~KonsoleProfilesEngine() override;
void init();
......
......@@ -47,7 +47,7 @@ class ApodProvider : public PotdProvider
* @param date The date for which the image shall be fetched.
* @param parent The parent object.
*/
ApodProvider( QObject *parent, const QVariantList &args );
explicit ApodProvider( QObject *parent, const QVariantList &args );
/**
* Destroys the APOD provider.
......
......@@ -47,7 +47,7 @@ class FlickrProvider : public PotdProvider
* @param date The date for which the image shall be fetched.
* @param parent The parent object.
*/
FlickrProvider( QObject *parent, const QVariantList &args );
explicit FlickrProvider( QObject *parent, const QVariantList &args );
/**
* Destroys the flickr provider.
......
......@@ -151,7 +151,7 @@ void PotdEngine::finished( PotdProvider *provider )
QImage img(provider->image());
// store in cache if it's not the response of a CachedProvider
if ( qobject_cast<CachedProvider*>( provider ) == 0 && !img.isNull() ) {
if ( qobject_cast<CachedProvider*>( provider ) == nullptr && !img.isNull() ) {
SaveImageThread *thread = new SaveImageThread( provider->identifier(), img );
connect(thread, SIGNAL(done(QString,QString,QImage)), this, SLOT(cachingFinished(QString,QString,QImage)));
QThreadPool::globalInstance()->start(thread);
......
......@@ -67,7 +67,7 @@ class PLASMA_POTD_EXPORT PotdProvider : public QObject
QString name() const;
/**
* @reutrn the date to load for this item, if any
* @return the date to load for this item, if any
*/
QDate date() const;
......
......@@ -40,8 +40,8 @@ public:
GetDigit = 2
};
StringParser(const QString &s) : m_index(0), m_s(s) {};
~StringParser() {};
StringParser(const QString &s) : m_index(0), m_s(s) {}
~StringParser() {}
QString get(int type)
{
......
......@@ -13,7 +13,7 @@ class DictionaryRunner : public Plasma::AbstractRunner
Q_OBJECT
public:
DictionaryRunner(QObject *parent, const QVariantList &args);
explicit DictionaryRunner(QObject *parent, const QVariantList &args);
void match(Plasma::RunnerContext &context) override;
void reloadConfiguration() override;
......
......@@ -32,8 +32,7 @@
K_EXPORT_PLASMA_RUNNER(katesessionsrunner, KateSessions)
KateSessions::KateSessions(QObject *parent, const QVariantList& args)
: Plasma::AbstractRunner(parent, args),
m_sessionWatch(nullptr)
: Plasma::AbstractRunner(parent, args)
{
setObjectName(QLatin1String("Kate Sessions"));
setIgnoredTypes(Plasma::RunnerContext::File | Plasma::RunnerContext::Directory | Plasma::RunnerContext::NetworkLocation);
......
......@@ -29,7 +29,7 @@ class KateSessions : public Plasma::AbstractRunner {
Q_OBJECT
public:
KateSessions( QObject *parent, const QVariantList& args );
explicit KateSessions( QObject *parent, const QVariantList& args );
~KateSessions() override;
void match(Plasma::RunnerContext &context) override;
......@@ -41,7 +41,7 @@ class KateSessions : public Plasma::AbstractRunner {
void slotTeardown();
private:
KDirWatch* m_sessionWatch;
KDirWatch* m_sessionWatch = nullptr;
QString m_sessionsFolderPath;
QStringList m_sessions;
};
......
......@@ -37,7 +37,7 @@ class KonsoleProfiles : public Plasma::AbstractRunner {
Q_OBJECT
public:
KonsoleProfiles( QObject *parent, const QVariantList& args );
explicit KonsoleProfiles( QObject *parent, const QVariantList& args );
~KonsoleProfiles() override;
void match(Plasma::RunnerContext &context) override;
......
......@@ -45,19 +45,19 @@ public:
class Result {
public:
Result() {
};
}
Result( const Result &r ) {
this->title = r.title;
this->url = r.url;
};
}
Result &operator= (const Result &other) {
this->title = other.title;
this->url = other.url;
return *this;
};
}
/** The page title of the match. */
QString title;
......
......@@ -31,7 +31,7 @@ class MediaWikiRunner : public Plasma::AbstractRunner
Q_OBJECT
public:
MediaWikiRunner(QObject *parent, const QVariantList &args);
explicit MediaWikiRunner(QObject *parent, const QVariantList &args);
~MediaWikiRunner() override;
void match(Plasma::RunnerContext &context) override;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment