Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Use {} initializer instead of 0 for QFlags-based args

To prevent the compiler wanting nullptr due to the QFlags zero hack
parent fa062807
......@@ -32,7 +32,7 @@ class AccessDialog : public QDialog
{
Q_OBJECT
public:
explicit AccessDialog(QDialog *parent = nullptr, Qt::WindowFlags flags = 0);
explicit AccessDialog(QDialog *parent = nullptr, Qt::WindowFlags flags = {});
~AccessDialog();
void setAcceptLabel(const QString &label);
......
......@@ -28,7 +28,7 @@ class AppChooserDialog : public QDialog
{
Q_OBJECT
public:
AppChooserDialog(const QStringList &choices, const QString &defaultApp, const QString &fileName, QDialog *parent = nullptr, Qt::WindowFlags flags = 0);
AppChooserDialog(const QStringList &choices, const QString &defaultApp, const QString &fileName, QDialog *parent = nullptr, Qt::WindowFlags flags = {});
~AppChooserDialog();
QString selectedApplication() const;
......
......@@ -35,7 +35,7 @@ class ScreenChooserDialog : public QDialog
{
Q_OBJECT
public:
ScreenChooserDialog(const QMap<quint32, ScreenCastPortalOutput> &screens, bool multiple = false, QDialog *parent = nullptr, Qt::WindowFlags flags = 0);
ScreenChooserDialog(const QMap<quint32, ScreenCastPortalOutput> &screens, bool multiple = false, QDialog *parent = nullptr, Qt::WindowFlags flags = {});
~ScreenChooserDialog();
QList<quint32> selectedScreens() const;
......
......@@ -32,7 +32,7 @@ class ScreenshotDialog : public QDialog
{
Q_OBJECT
public:
explicit ScreenshotDialog(QDialog *parent = nullptr, Qt::WindowFlags flags = 0);
explicit ScreenshotDialog(QDialog *parent = nullptr, Qt::WindowFlags flags = {});
~ScreenshotDialog();
QImage image() const;
......
Markdown is supported
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