Commit 0e7ef26f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIt_SILENT: using pragma once directly

parent bcd952ea
Pipeline #56080 skipped
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef UTIL_TEST_H
#define UTIL_TEST_H
#pragma once
#include <QObject>
......@@ -23,5 +22,4 @@ private Q_SLOTS:
void testAttachment2();
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef CHARSET_TEST_H
#define CHARSET_TEST_H
#pragma once
#include <QObject>
......@@ -20,4 +19,3 @@ private Q_SLOTS:
void testLeadingFrom();
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef CONTENTINDEXTEXT_H
#define CONTENTINDEXTEXT_H
#pragma once
#include <QObject>
......@@ -19,4 +18,3 @@ private Q_SLOTS:
void testNavigation();
};
#endif
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef CONTENT_TEST_H
#define CONTENT_TEST_H
#pragma once
#include <QObject>
......@@ -35,4 +34,3 @@ private Q_SLOTS:
void testContentTypeMimetype();
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef HEADERFACTORYTEST_H
#define HEADERFACTORYTEST_H
#pragma once
#include <QObject>
......@@ -16,4 +15,3 @@ private Q_SLOTS:
void testBuiltInHeaders();
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef HEADERTEST_H
#define HEADERTEST_H
#pragma once
#include <QObject>
......@@ -42,4 +41,3 @@ private Q_SLOTS:
void noAbstractHeaders();
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef MESSAGE_TEST_H
#define MESSAGE_TEST_H
#pragma once
#include "kmime_message.h"
#include <QObject>
......@@ -44,4 +43,3 @@ private:
KMime::Message::Ptr readAndParseMail(const QString &mailFile) const;
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef PARSEDATETIMETEST_H
#define PARSEDATETIMETEST_H
#pragma once
#include <QObject>
......@@ -17,4 +16,3 @@ private Q_SLOTS:
void testParseDateTime_data();
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef RFC2047TEST_H
#define RFC2047TEST_H
#pragma once
#include <QObject>
......@@ -16,5 +15,4 @@ private Q_SLOTS:
void testRFC2047encode();
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-only
*/
#ifndef RFC2231TEST_H
#define RFC2231TEST_H
#pragma once
#include <QObject>
......@@ -18,5 +17,4 @@ private Q_SLOTS:
void testRFC2231encode();
};
#endif
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef UTIL_TEST_H
#define UTIL_TEST_H
#pragma once
#include <QObject>
......@@ -28,5 +27,4 @@ private Q_SLOTS:
void testLFCRLF_performance();
};
#endif
......@@ -41,8 +41,7 @@
no lines longer than 998 characters, and either only LFs, or only CRLFs.
*/
#ifndef __KMIME_CHARFREQ_H__
#define __KMIME_CHARFREQ_H__
#pragma once
#include <QByteArray>
#undef None
......@@ -169,4 +168,3 @@ private:
} // namespace KMime
#endif /* __KMIME_CHARFREQ_H__ */
......@@ -7,8 +7,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef __KMIME_CODECS_H__
#define __KMIME_CODECS_H__
#pragma once
#include <QByteArray>
#include <QString>
......@@ -66,4 +65,3 @@ Q_REQUIRED_RESULT QByteArray encodeRFC2231String(const QString &src, const QByte
} // namespace KMime
#endif /* __KMIME_CODEC_H__ */
......@@ -32,8 +32,7 @@ TODO: possible glossary terms:
broken-down object representation
*/
#ifndef __KMIME_CONTENT_H__
#define __KMIME_CONTENT_H__
#pragma once
#include "kmime_export.h"
#include "kmime_contentindex.h"
......@@ -699,4 +698,3 @@ template <typename T> bool Content::removeHeader()
Q_DECLARE_METATYPE(KMime::Content*)
#endif // __KMIME_CONTENT_H__
......@@ -4,8 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KMIME_CONTENT_P_H
#define KMIME_CONTENT_P_H
#pragma once
//@cond PRIVATE
......@@ -65,4 +64,3 @@ public:
//@endcond
#endif
......@@ -18,8 +18,7 @@
Internet Message Access Protocol (IMAP)</a>.
*/
#ifndef KMIME_CONTENTINDEX_H
#define KMIME_CONTENTINDEX_H
#pragma once
#include "kmime_export.h"
......@@ -133,4 +132,3 @@ KMIME_EXPORT uint qHash(const KMime::ContentIndex &);
Q_DECLARE_METATYPE(KMime::ContentIndex)
#endif
......@@ -31,8 +31,7 @@
ASCII string of the form "Sun Mar 31 02:08:35 2002".
*/
#ifndef __KMIME_DATEFORMATTER_H__
#define __KMIME_DATEFORMATTER_H__
#pragma once
#include <time.h>
#include <QDateTime>
......@@ -186,4 +185,3 @@ private:
} // namespace KMime
#endif /* __KMIME_DATEFORMATTER_H__ */
......@@ -7,8 +7,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef __KMIME_HEADER_PARSING_H__
#define __KMIME_HEADER_PARSING_H__
#pragma once
#include "kmime_export.h"
#include "kmime_types.h"
......@@ -255,5 +254,4 @@ KMIME_EXPORT void extractHeaderAndBody(const QByteArray &content,
Q_DECLARE_OPERATORS_FOR_FLAGS(KMime::HeaderParsing::ParseTokenFlags)
#endif // __KMIME_HEADER_PARSING_H__
......@@ -3,8 +3,7 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KMIME_HEADER_PARSING_P_H
#define KMIME_HEADER_PARSING_P_H
#pragma once
#include <QVector>
......@@ -26,4 +25,3 @@ Q_REQUIRED_RESULT QVector<KMime::Headers::Base *> parseHeaders(const QByteArray
}
#endif
......@@ -17,8 +17,7 @@
@authors Constantin Berzan \<exit3219@gmail.com\>
*/
#ifndef __KMIME_HEADERFACTORY_H__
#define __KMIME_HEADERFACTORY_H__
#pragma once
#include "kmime_export.h"
......@@ -44,4 +43,3 @@ namespace HeaderFactory
} // namespace KMime
#endif /* __KMIME_HEADERFACTORY_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