1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

use nullptr here

This commit is contained in:
Laurent Montel 2022-06-18 07:27:33 +02:00
parent 05b3f2eeec
commit c6ad2708d4
28 changed files with 31 additions and 31 deletions

View File

@ -53,7 +53,7 @@ class FALKON_EXPORT AdBlockManager : public QObject
Q_OBJECT
public:
AdBlockManager(QObject* parent = 0);
AdBlockManager(QObject* parent = nullptr);
~AdBlockManager();
void load();

View File

@ -28,7 +28,7 @@ class FALKON_EXPORT AutoSaver : public QObject
Q_OBJECT
public:
explicit AutoSaver(QObject* parent = 0);
explicit AutoSaver(QObject* parent = nullptr);
// Emits save() if timer is running. Call this from destructor.
void saveIfNecessary();

View File

@ -48,7 +48,7 @@ class FALKON_EXPORT AutoFill : public QObject
Q_OBJECT
public:
explicit AutoFill(QObject* parent = 0);
explicit AutoFill(QObject* parent = nullptr);
PasswordManager* passwordManager() const;
void loadSettings();

View File

@ -29,7 +29,7 @@ class FALKON_EXPORT BookmarksExporter : public QObject
Q_OBJECT
public:
explicit BookmarksExporter(QObject* parent = 0);
explicit BookmarksExporter(QObject* parent = nullptr);
virtual ~BookmarksExporter();
bool error() const;

View File

@ -27,7 +27,7 @@ class BookmarkItem;
class HtmlExporter : public BookmarksExporter
{
public:
explicit HtmlExporter(QObject* parent = 0);
explicit HtmlExporter(QObject* parent = nullptr);
QString name() const override;
QString getPath(QWidget* parent) override;

View File

@ -31,7 +31,7 @@ class FALKON_EXPORT BookmarksImporter : public QObject
Q_OBJECT
public:
explicit BookmarksImporter(QObject* parent = 0);
explicit BookmarksImporter(QObject* parent = nullptr);
virtual ~BookmarksImporter();
bool error() const;

View File

@ -26,7 +26,7 @@
class FALKON_EXPORT ChromeImporter : public BookmarksImporter
{
public:
explicit ChromeImporter(QObject* parent = 0);
explicit ChromeImporter(QObject* parent = nullptr);
QString description() const override;
QString standardPath() const override;

View File

@ -26,7 +26,7 @@
class FALKON_EXPORT FirefoxImporter : public BookmarksImporter
{
public:
explicit FirefoxImporter(QObject* parent = 0);
explicit FirefoxImporter(QObject* parent = nullptr);
~FirefoxImporter();
QString description() const override;

View File

@ -25,7 +25,7 @@
class FALKON_EXPORT HtmlImporter : public BookmarksImporter
{
public:
explicit HtmlImporter(QObject* parent = 0);
explicit HtmlImporter(QObject* parent = nullptr);
QString description() const override;
QString standardPath() const override;

View File

@ -25,7 +25,7 @@
class IeImporter : public BookmarksImporter
{
public:
explicit IeImporter(QObject* parent = 0);
explicit IeImporter(QObject* parent = nullptr);
QString description() const override;
QString standardPath() const override;

View File

@ -26,7 +26,7 @@
class FALKON_EXPORT OperaImporter : public BookmarksImporter
{
public:
explicit OperaImporter(QObject* parent = 0);
explicit OperaImporter(QObject* parent = nullptr);
QString description() const override;
QString standardPath() const override;

View File

@ -48,7 +48,7 @@ public:
MaxRole = SidebarExpandedRole
};
explicit BookmarksModel(BookmarkItem* root, Bookmarks* bookmarks, QObject* parent = 0);
explicit BookmarksModel(BookmarkItem* root, Bookmarks* bookmarks, QObject* parent = nullptr);
void addBookmark(BookmarkItem* parent, int row, BookmarkItem* item);
void removeBookmark(BookmarkItem* item);

View File

@ -32,7 +32,7 @@ class FALKON_EXPORT CookieJar : public QObject
Q_OBJECT
public:
explicit CookieJar(QObject* parent = 0);
explicit CookieJar(QObject* parent = nullptr);
~CookieJar();
void loadSettings();

View File

@ -36,7 +36,7 @@ class FALKON_EXPORT LocationCompleter : public QObject
{
Q_OBJECT
public:
explicit LocationCompleter(QObject* parent = 0);
explicit LocationCompleter(QObject* parent = nullptr);
void setMainWindow(BrowserWindow* window);
void setLocationBar(LocationBar* locationBar);

View File

@ -44,7 +44,7 @@ public:
SearchSuggestionRole
};
explicit LocationCompleterModel(QObject* parent = 0);
explicit LocationCompleterModel(QObject* parent = nullptr);
void setCompletions(const QList<QStandardItem*> &items);
void addCompletions(const QList<QStandardItem*> &items);

View File

@ -37,7 +37,7 @@ class FALKON_EXPORT DesktopNotificationsFactory : public QObject
public:
enum Type { DesktopNative, PopupWidget };
explicit DesktopNotificationsFactory(QObject* parent = 0);
explicit DesktopNotificationsFactory(QObject* parent = nullptr);
void loadSettings();

View File

@ -74,7 +74,7 @@ public:
Q_PROPERTY(bool valid READ isValid)
Q_PROPERTY(QNetworkAccessManager* networkAccessManager READ networkAccessManager WRITE setNetworkAccessManager)
OpenSearchEngine(QObject* parent = 0);
OpenSearchEngine(QObject* parent = nullptr);
~OpenSearchEngine();
QString name() const;

View File

@ -35,7 +35,7 @@ class FALKON_EXPORT SearchEnginesManager : public QObject
{
Q_OBJECT
public:
explicit SearchEnginesManager(QObject* parent = 0);
explicit SearchEnginesManager(QObject* parent = nullptr);
struct Engine {
QString name;

View File

@ -31,7 +31,7 @@ class FALKON_EXPORT Updater : public QObject
{
Q_OBJECT
public:
explicit Updater(BrowserWindow* window, QObject* parent = 0);
explicit Updater(BrowserWindow* window, QObject* parent = nullptr);
struct FALKON_EXPORT Version {
bool isValid;

View File

@ -30,7 +30,7 @@ class FALKON_EXPORT UserAgentManager : QObject
Q_OBJECT
public:
explicit UserAgentManager(QObject* parent = 0);
explicit UserAgentManager(QObject* parent = nullptr);
void loadSettings();

View File

@ -78,7 +78,7 @@ public:
bool operator==(const Plugin &other) const;
};
explicit Plugins(QObject* parent = 0);
explicit Plugins(QObject* parent = nullptr);
QList<Plugin> availablePlugins();

View File

@ -48,7 +48,7 @@ public:
}
};
explicit SpeedDial(QObject* parent = 0);
explicit SpeedDial(QObject* parent = nullptr);
~SpeedDial();
void loadSettings();

View File

@ -36,7 +36,7 @@ class FALKON_EXPORT AesInterface : public QObject
public:
static const int VERSION;
explicit AesInterface(QObject* parent = 0);
explicit AesInterface(QObject* parent = nullptr);
~AesInterface();
bool isOk();

View File

@ -29,8 +29,8 @@ class FALKON_EXPORT DelayedFileWatcher : public QFileSystemWatcher
Q_OBJECT
public:
explicit DelayedFileWatcher(QObject* parent = 0);
explicit DelayedFileWatcher(const QStringList &paths, QObject* parent = 0);
explicit DelayedFileWatcher(QObject* parent = nullptr);
explicit DelayedFileWatcher(const QStringList &paths, QObject* parent = nullptr);
Q_SIGNALS:
void delayedDirectoryChanged(const QString &path);

View File

@ -54,9 +54,9 @@ class FALKON_EXPORT Action : public QAction
{
Q_OBJECT
public:
explicit Action(QObject* parent = 0);
explicit Action(const QString &text, QObject* parent = 0);
explicit Action(const QIcon &icon, const QString &text, QObject* parent = 0);
explicit Action(QObject* parent = nullptr);
explicit Action(const QString &text, QObject* parent = nullptr);
explicit Action(const QIcon &icon, const QString &text, QObject* parent = nullptr);
Q_SIGNALS:
void ctrlTriggered();

View File

@ -32,7 +32,7 @@ class FALKON_EXPORT PageThumbnailer : public QObject
Q_OBJECT
public:
explicit PageThumbnailer(QObject* parent = 0);
explicit PageThumbnailer(QObject* parent = nullptr);
~PageThumbnailer();
void setSize(const QSize &size);

View File

@ -57,7 +57,7 @@ class FALKON_EXPORT SqlDatabase : public QObject
Q_OBJECT
public:
explicit SqlDatabase(QObject* parent = 0);
explicit SqlDatabase(QObject* parent = nullptr);
~SqlDatabase();
// Returns database connection for current thread

View File

@ -43,7 +43,7 @@ public:
SafeJsWorld = QWebEngineScript::ApplicationWorld
};
explicit WebPage(QObject* parent = 0);
explicit WebPage(QObject* parent = nullptr);
~WebPage();
WebView *view() const;