Commit 642b3a86 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIt_SILENT: using pragma once directly

parent 1691c4cd
Pipeline #56074 skipped
......@@ -5,8 +5,7 @@
*
*/
#ifndef ABSTRACTINDEXER_H
#define ABSTRACTINDEXER_H
#pragma once
#include <AkonadiCore/Item>
#include <QStringList>
......@@ -32,4 +31,3 @@ public:
virtual void updateFlags(const Akonadi::Item &item, const QSet<QByteArray> &addedFlags, const QSet<QByteArray> &removed);
};
#endif // ABSTRACTINDEXER_H
......@@ -7,8 +7,7 @@
*
*/
#ifndef AGENT_H
#define AGENT_H
#pragma once
#include <agentbase.h>
#include <collection.h>
......@@ -62,4 +61,3 @@ private:
Scheduler m_scheduler;
};
#endif // AGENT_H
......@@ -6,8 +6,7 @@
*
*/
#ifndef AKONOTESINDEXER_H
#define AKONOTESINDEXER_H
#pragma once
#include <xapian.h>
......@@ -44,4 +43,3 @@ private:
Xapian::TermGenerator *m_termGen = nullptr;
};
#endif // AKONOTESINDEXER_H
......@@ -6,8 +6,7 @@
*
*/
#ifndef CALENDARINDEXER_H
#define CALENDARINDEXER_H
#pragma once
#include "abstractindexer.h"
#include "xapiandatabase.h"
......@@ -46,4 +45,3 @@ private:
Akonadi::Search::XapianDatabase *m_db = nullptr;
};
#endif // CALENDARINDEXER_H
......@@ -5,8 +5,7 @@
*
*/
#ifndef COLLECTIONINDEXER_H
#define COLLECTIONINDEXER_H
#pragma once
#include <AkonadiCore/collection.h>
#include <QString>
......@@ -33,4 +32,3 @@ private:
Xapian::WritableDatabase *m_db;
};
#endif
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*
*/
#ifndef COLLECTIONINDEXINGJOB_H
#define COLLECTIONINDEXINGJOB_H
#pragma once
#include "index.h"
#include <AkonadiCore/Collection>
......@@ -55,4 +54,3 @@ private:
int m_progressTotal = 0;
};
#endif
......@@ -4,8 +4,7 @@
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*
*/
#ifndef COLLECTIONUPDATEJOB_H
#define COLLECTIONUPDATEJOB_H
#pragma once
#include "index.h"
#include <AkonadiCore/Collection>
......@@ -34,4 +33,3 @@ private:
Index &mIndex;
};
#endif
......@@ -5,8 +5,7 @@
*
*/
#ifndef CONTACTINDEXER_H
#define CONTACTINDEXER_H
#pragma once
#include "abstractindexer.h"
#include "xapiandatabase.h"
......@@ -34,4 +33,3 @@ private:
Akonadi::Search::XapianDatabase *m_db = nullptr;
};
#endif // CONTACTINDEXER_H
......@@ -5,8 +5,7 @@
*
*/
#ifndef EMAILINDEXER_H
#define EMAILINDEXER_H
#pragma once
#include <xapian.h>
......@@ -56,4 +55,3 @@ private:
void insertBool(char key, bool value);
};
#endif // EMAILINDEXER_H
......@@ -5,8 +5,7 @@
*
*/
#ifndef INDEX_H
#define INDEX_H
#pragma once
#include "abstractindexer.h"
#include "collectionindexer.h"
......@@ -71,4 +70,3 @@ private:
CollectionIndexer *m_collectionIndexer = nullptr;
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef _NEPOMUK_LINUX_PRIORITY_H_
#define _NEPOMUK_LINUX_PRIORITY_H_
#pragma once
bool lowerIOPriority();
/// Sets the priority to batch
......@@ -13,4 +12,3 @@ bool lowerSchedulingPriority();
bool setIdleSchedulingPriority();
bool lowerPriority();
#endif // _NEPOMUK_LINUX_PRIORITY_H_
......@@ -5,8 +5,7 @@
*
*/
#ifndef SCHEDULER_H
#define SCHEDULER_H
#pragma once
#include "index.h"
#include <AkonadiCore/Collection>
......@@ -87,4 +86,3 @@ private:
int m_busyTimeout;
};
#endif
......@@ -6,8 +6,7 @@
*
*/
#ifndef AKONADI_SEARCH_PIM_SEARCHPLUGIN_H
#define AKONADI_SEARCH_PIM_SEARCHPLUGIN_H
#pragma once
#include <QObject>
#include <QStringList>
......@@ -30,4 +29,3 @@ public:
QSet<qint64> search(const QString &query, const QVector<qint64> &collections, const QStringList &mimeTypes) override;
};
#endif
......@@ -6,8 +6,7 @@
*
*/
#ifndef AKONADI_SEARCH_CORE_QUERY_H
#define AKONADI_SEARCH_CORE_QUERY_H
#pragma once
#include "resultiterator.h"
#include "search_core_export.h"
......@@ -146,4 +145,3 @@ private:
}
}
#endif // AKONADI_SEARCH_CORE_QUERY_H
......@@ -6,8 +6,7 @@
*
*/
#ifndef AKONADI_SEARCH_CORE_RESULT_ITERATOR_H
#define AKONADI_SEARCH_CORE_RESULT_ITERATOR_H
#pragma once
#include "search_core_export.h"
#include "searchstore.h"
......@@ -68,4 +67,3 @@ private:
}
}
#endif // AKONADI_SEARCH_CORE_RESULT_ITERATOR_H
......@@ -6,8 +6,7 @@
*
*/
#ifndef AKONADI_SEARCH_CORE_SEARCHSTORE_H
#define AKONADI_SEARCH_CORE_SEARCHSTORE_H
#pragma once
#include <QHash>
#include <QObject>
......@@ -85,4 +84,3 @@ inline int deserialize(const QByteArray &namespace_, const QByteArray &str)
Q_DECLARE_INTERFACE(Akonadi::Search::SearchStore, "org.kde.Akonadi.Search.SearchStore")
#endif // AKONADI_SEARCH_CORE_SEARCHSTORE_H
......@@ -6,8 +6,7 @@
*
*/
#ifndef AKONADI_SEARCH_CORE_TERM_H
#define AKONADI_SEARCH_CORE_TERM_H
#pragma once
#include "search_core_export.h"
......@@ -135,4 +134,3 @@ inline Term operator!(const Term &rhs)
AKONADI_SEARCH_CORE_EXPORT QDebug operator<<(QDebug d, const Akonadi::Search::Term &t);
#endif // AKONADI_SEARCH_CORE_TERM_H
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef AKONADISEARCHDEBUGDIALOG_H
#define AKONADISEARCHDEBUGDIALOG_H
#pragma once
#include "akonadisearchdebugsearchpathcombobox.h"
#include "search_debug_export.h"
......@@ -43,4 +42,3 @@ private:
};
}
}
#endif // AKONADISEARCHDEBUGDIALOG_H
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef AKONADISEARCHDEBUGSEARCHPATHCOMBOBOX_H
#define AKONADISEARCHDEBUGSEARCHPATHCOMBOBOX_H
#pragma once
#include "search_debug_export.h"
#include <QComboBox>
......@@ -36,4 +35,3 @@ private:
};
}
}
#endif // AKONADISEARCHDEBUGSEARCHPATHCOMBOBOX_H
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef AKONADISEARCHDEBUGWIDGET_H
#define AKONADISEARCHDEBUGWIDGET_H
#pragma once
#include "akonadisearchdebugsearchpathcombobox.h"
#include "search_debug_export.h"
......@@ -48,4 +47,3 @@ private:
};
}
}
#endif // AKONADISEARCHDEBUGWIDGET_H
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