Commit c6ad2708 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

use nullptr here

parent 05b3f2ee
......@@ -53,7 +53,7 @@ class FALKON_EXPORT AdBlockManager : public QObject
Q_OBJECT
public:
AdBlockManager(QObject* parent = 0);
AdBlockManager(QObject* parent = nullptr);
~AdBlockManager();
void load();
......
......@@ -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();
......
......@@ -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();
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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);
......
......@@ -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();
......
......@@ -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);
......
......@@ -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);
......
......@@ -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();
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -30,7 +30,7 @@ class FALKON_EXPORT UserAgentManager : QObject
Q_OBJECT
public:
explicit UserAgentManager(QObject* parent = 0);
explicit UserAgentManager(QObject* parent = nullptr);
void loadSettings();
......
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