Commit 312f294b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing Q_REQUIRED_RESULT

parent e90ce0ec
......@@ -63,7 +63,7 @@ public:
/**
* Returns the original part of the compressed attachment.
*/
const AttachmentPart::Ptr originalPart() const;
Q_REQUIRED_RESULT const AttachmentPart::Ptr originalPart() const;
/**
* Returns the compressed part of the attachment.
......
......@@ -132,7 +132,7 @@ public:
explicit Aggregation(const Aggregation &opt);
explicit Aggregation(
const QString &name, const QString &description, Grouping grouping, GroupExpandPolicy groupExpandPolicy, Threading threading, ThreadLeader threadLeader, ThreadExpandPolicy threadExpandPolicy, FillViewStrategy fillViewStrategy, bool readOnly);
static bool compareName(Aggregation *agg1, Aggregation *agg2)
static Q_REQUIRED_RESULT bool compareName(Aggregation *agg1, Aggregation *agg2)
{
return agg1->name() < agg2->name();
}
......
......@@ -117,7 +117,7 @@ Q_SIGNALS:
void finished();
private:
bool containString(const QString &searchInString) const;
Q_REQUIRED_RESULT bool containString(const QString &searchInString) const;
QVector<Akonadi::MessageStatus> mStatus; ///< Messages must match these statuses, if non 0
QString mSearchString; ///< Messages must match this search string, if not empty
QString mTagId; ///< Messages must have this tag, if not empty. Contains a tag url.
......
......@@ -52,12 +52,12 @@ private:
public:
void clearAllSets();
int setCount() const;
Q_REQUIRED_RESULT int setCount() const;
void removeSet(MessageItemSetReference ref);
void removeMessageItemFromAllSets(MessageItem *mi);
QList< MessageItem * > messageItems(MessageItemSetReference ref);
MessageItemSetReference createSet();
bool addMessageItem(MessageItemSetReference ref, MessageItem *mi);
Q_REQUIRED_RESULT QList< MessageItem * > messageItems(MessageItemSetReference ref);
Q_REQUIRED_RESULT MessageItemSetReference createSet();
Q_REQUIRED_RESULT bool addMessageItem(MessageItemSetReference ref, MessageItem *mi);
};
} // namespace Core
} // namespace MessageList
......
......@@ -119,7 +119,7 @@ public:
* Returns true if the view is currently loading, that is
* it's in the first (possibly lengthy) job batch after attaching to a StorageModel.
*/
bool isLoading() const;
Q_REQUIRED_RESULT bool isLoading() const;
/**
* Returns the message item that is at the _current_ storage row index
......@@ -176,7 +176,7 @@ public:
* while manipulating the view) so be sure to call deletePersistentSet()
* when you no longer need it.
*/
MessageItemSetReference createPersistentSet(const QList< MessageItem * > &items);
Q_REQUIRED_RESULT MessageItemSetReference createPersistentSet(const QList< MessageItem * > &items);
/**
* Returns the list of MessageItems that are still existing in the
......@@ -185,7 +185,7 @@ public:
* but may contain less (even 0) if these MessageItem object were removed
* from the view for some reason.
*/
QList< MessageItem * > persistentSetCurrentMessageItemList(MessageItemSetReference ref);
Q_REQUIRED_RESULT QList< MessageItem * > persistentSetCurrentMessageItemList(MessageItemSetReference ref);
/**
* Deletes the persistent set pointed by the specified reference.
......
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