Commit fbebb19b authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix pedantic

parent 1900589f
Pipeline #237564 passed with stage
in 1 minute and 46 seconds
......@@ -59,22 +59,18 @@ public:
void setNoPropagate(bool noPropagate);
Q_SIGNAL void noPropagateChanged();
#define MASK_PROPERTY(name, value) \
Q_PROPERTY(bool name READ name WRITE set_##name NOTIFY name##Changed); \
\
public: \
Q_SIGNAL void name##Changed(); \
[[nodiscard]] bool name() \
{ \
return (m_ace->mask & (value)); \
} \
void set_##name(bool check) \
{ \
fprintf_binary(stderr, m_ace->mask); \
m_ace->mask = check ? (m_ace->mask | (value)) : (m_ace->mask ^ (value)); \
fprintf_binary(stderr, m_ace->mask); \
Q_EMIT name##Changed(); \
}
#define MASK_PROPERTY(name, value) \
Q_PROPERTY(bool name READ name WRITE set_##name NOTIFY name##Changed) \
\
public: \
Q_SIGNAL void name##Changed(); \
[[nodiscard]] bool name() { return (m_ace->mask & (value)); } \
void set_##name(bool check) { \
fprintf_binary(stderr, m_ace->mask); \
m_ace->mask = check ? (m_ace->mask | (value)) : (m_ace->mask ^ (value)); \
fprintf_binary(stderr, m_ace->mask); \
Q_EMIT name##Changed(); \
}
MASK_PROPERTY(takeOwnership, WRITE_OWNER)
MASK_PROPERTY(changePermissions, WRITE_DAC)
......
......@@ -106,11 +106,11 @@ public:
return ret;
}
Q_PROPERTY(QString owner MEMBER m_owner NOTIFY ownerChanged);
Q_PROPERTY(QString owner MEMBER m_owner NOTIFY ownerChanged)
Q_SIGNAL void ownerChanged();
QString m_owner;
Q_PROPERTY(QString group MEMBER m_group NOTIFY groupChanged);
Q_PROPERTY(QString group MEMBER m_group NOTIFY groupChanged)
Q_SIGNAL void groupChanged();
QString m_group;
};
......
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