Verified Commit 4e2a1dae authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix Tag's QDebug streaming operator

parent 2dc52fe0
......@@ -234,7 +234,7 @@ bool Tag::isImmutable() const
return (d_ptr->type.isEmpty() || d_ptr->type == PLAIN);
}
QDebug &operator<<(QDebug &debug, const Tag &tag)
QDebug operator<<(QDebug debug, const Tag &tag)
{
QDebugStateSaver saver(debug);
debug.nospace() << "Akonadi::Tag(ID " << tag.id() << ", GID " << tag.gid() << ", parent tag ID " << tag.parent().id() << ")";
......
......@@ -262,7 +262,7 @@ inline bool Tag::hasAttribute() const
} // namespace Akonadi
AKONADICORE_EXPORT QDebug &operator<<(QDebug &debug, const Akonadi::Tag &tag);
AKONADICORE_EXPORT QDebug operator<<(QDebug debug, const Akonadi::Tag &tag);
Q_DECLARE_METATYPE(Akonadi::Tag)
Q_DECLARE_METATYPE(Akonadi::Tag::List)
......
......@@ -30,11 +30,7 @@ namespace Akonadi
class TagPrivate : public QSharedData
{
public:
TagPrivate()
: id(-1)
{
}
explicit TagPrivate() = default;
TagPrivate(const TagPrivate &other)
: QSharedData(other)
{
......@@ -48,9 +44,7 @@ public:
mAttributeStorage = other.mAttributeStorage;
}
~TagPrivate()
{
}
~TagPrivate() = default;
void resetChangeLog()
{
......@@ -59,7 +53,7 @@ public:
// 4 bytes padding here (after QSharedData)
Tag::Id id;
Tag::Id id = -1;
QByteArray gid;
QByteArray remoteId;
QScopedPointer<Tag> parent;
......
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