Commit 7e62b124 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent 0ad52af0
......@@ -126,8 +126,11 @@ private: // mailserviceimpl, kmkernel, kmcommands, callback, kmmainwidget
~KMComposerWin() override;
public:
enum ModeType { ComposerType = 0, TemplateType };
Q_ENUMS(ModeType)
enum ModeType {
ComposerType = 0,
TemplateType,
};
Q_ENUM(ModeType)
static Composer *create(const KMime::Message::Ptr &msg,
bool lastSignState,
......
......@@ -1949,13 +1949,13 @@ void KMMainWidget::refreshMessageListSelection()
//
// FIXME: The "selection" version of these functions is in MessageActions.
// We should probably move everything there....
void KMMainWidget::setMessageSetStatus(const Akonadi::Item::List &select, const Akonadi::MessageStatus &status, bool toggle)
void KMMainWidget::setMessageSetStatus(const Akonadi::Item::List &select, Akonadi::MessageStatus status, bool toggle)
{
KMCommand *command = new KMSetStatusCommand(status, select, toggle);
command->start();
}
void KMMainWidget::setCurrentThreadStatus(const Akonadi::MessageStatus &status, bool toggle)
void KMMainWidget::setCurrentThreadStatus(Akonadi::MessageStatus status, bool toggle)
{
const Akonadi::Item::List select = mMessagePane->currentThreadAsMessageList();
if (select.isEmpty()) {
......
......@@ -310,7 +310,7 @@ private:
* Set the status of the messages referenced by the specified set, eventually toggling it.
* The set parameter must not be null and the ownership is passed to this function.
*/
void setMessageSetStatus(const Akonadi::Item::List &select, const Akonadi::MessageStatus &status, bool toggle);
void setMessageSetStatus(const Akonadi::Item::List &select, Akonadi::MessageStatus status, bool toggle);
/**
* Toggles a tag for the messages referenced by the specified set.
* The set parameter must not be null and the ownership is passed to this function.
......@@ -319,7 +319,7 @@ private:
/**
* This applies setMessageSetStatus() on the current thread.
*/
void setCurrentThreadStatus(const Akonadi::MessageStatus &status, bool toggle);
void setCurrentThreadStatus(Akonadi::MessageStatus status, bool toggle);
void applyFilters(const Akonadi::Item::List &selectedMessages);
void applyFilters(const Akonadi::Collection::List &selectedCols);
......
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