Commit 299bfea8 authored by Laurent Montel's avatar Laurent Montel
Browse files

Use #pragma once

parent c9c36abc
Pipeline #211836 passed with stage
in 5 minutes and 12 seconds
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_ASYEXPORTER_H
#define KIG_FILTERS_ASYEXPORTER_H
#pragma once
#include "exporter.h"
......@@ -23,5 +22,3 @@ public:
QString menuIcon() const override;
void run(const KigPart &doc, KigWidget &w) override;
};
#endif
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_ASYEXPORTERIMPVISITOR_H
#define KIG_FILTERS_ASYEXPORTERIMPVISITOR_H
#pragma once
#include "../kig/kig_document.h"
#include "../kig/kig_part.h"
......@@ -114,5 +113,3 @@ private:
*/
void plotGenericCurve(const CurveImp *imp);
};
#endif
......@@ -2,8 +2,7 @@
//
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_ASYEXPORTEROPTIONS_H
#define KIG_FILTERS_ASYEXPORTEROPTIONS_H
#pragma once
#include <QWidget>
......@@ -28,5 +27,3 @@ public:
void setExtraFrame(bool frame);
bool showExtraFrame() const;
};
#endif
......@@ -3,8 +3,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_CABRI_FILTER_H
#define KIG_FILTERS_CABRI_FILTER_H
#pragma once
#include "filter.h"
......@@ -35,5 +34,3 @@ public:
friend class CabriReader;
};
#endif
......@@ -4,8 +4,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_CABRI_UTILS_H
#define KIG_FILTERS_CABRI_UTILS_H
#pragma once
#undef CABRI_DEBUG
......@@ -147,5 +146,3 @@ public:
CabriObject *readObject(QFile &f) override;
void decodeStyle(CabriObject *obj, Qt::PenStyle &ps, Kig::PointStyle &pointType) override;
};
#endif
......@@ -3,8 +3,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_DRGEO_FILTER_H
#define KIG_FILTERS_DRGEO_FILTER_H
#pragma once
#include "filter.h"
......@@ -30,5 +29,3 @@ public:
private:
KigDocument *importFigure(const QDomNode &f, const bool grid);
};
#endif
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_EXPORTER_H
#define KIG_FILTERS_EXPORTER_H
#pragma once
#include <QAction>
......@@ -84,5 +83,3 @@ public:
QString menuIcon() const override;
void run(const KigPart &doc, KigWidget &w) override;
};
#endif
......@@ -3,8 +3,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef FILTER_H
#define FILTER_H
#pragma once
#include <QString>
......@@ -82,4 +81,3 @@ public:
*/
virtual KigDocument *load(const QString &fromfile) = 0;
};
#endif
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef FILTERS_COMMON_H
#define FILTERS_COMMON_H
#pragma once
class ObjectTypeCalcer;
class Coordinate;
......@@ -16,5 +15,3 @@ class KigDocument;
* parts given by the argument \p arg of obj \p o.
*/
ObjectTypeCalcer *filtersConstructTextObject(const Coordinate &c, ObjectCalcer *o, const QByteArray &arg, const KigDocument &doc, bool needframe);
#endif // FILTERS_COMMON_H
......@@ -6,8 +6,7 @@
*/
#ifndef GEOGEBRA_FILTER_H
#define GEOGEBRA_FILTER_H
#pragma once
#include "filter.h"
......@@ -33,5 +32,3 @@ protected:
{
}
};
#endif // GEOGEBRA_FILTER_H
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_IMAGEEXPORTEROPTIONS_H
#define KIG_FILTERS_IMAGEEXPORTEROPTIONS_H
#pragma once
#include "../misc/unit.h"
......@@ -45,5 +44,3 @@ protected slots:
void slotHeightChanged(double);
void slotUnitChanged(int);
};
#endif
......@@ -3,8 +3,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_KGEO_FILTER_H
#define KIG_FILTERS_KGEO_FILTER_H
#pragma once
#include "filter.h"
......@@ -38,5 +37,3 @@ protected:
bool grid;
bool axes;
};
#endif
......@@ -8,8 +8,7 @@
/// note: this code comes from KGeo by Marc Bartsch.
#ifndef RESOURCE_H
#define RESOURCE_H
#pragma once
#include <QString>
#include <iostream>
......@@ -161,5 +160,3 @@
#define ID_overlayRectSize 24
#define PI 3.1415926535
#endif // RESOURCE_H
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_KSEG_FILTER_H
#define KIG_FILTERS_KSEG_FILTER_H
#pragma once
#include "filter.h"
......@@ -22,5 +21,3 @@ public:
bool supportMime(const QString &mime) override;
KigDocument *load(const QString &fromfile) override;
};
#endif
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_LATEXEXPORTER_H
#define KIG_FILTERS_LATEXEXPORTER_H
#pragma once
#include "exporter.h"
......@@ -23,5 +22,3 @@ public:
QString menuIcon() const override;
void run(const KigPart &doc, KigWidget &w) override;
};
#endif
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_LATEXEXPORTEROPTIONS_H
#define KIG_FILTERS_LATEXEXPORTEROPTIONS_H
#pragma once
#include <QWidget>
......@@ -36,5 +35,3 @@ public:
void setExtraFrame(bool frame);
bool showExtraFrame() const;
};
#endif
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_NATIVE_FILTER_H
#define KIG_FILTERS_NATIVE_FILTER_H
#pragma once
#include "filter.h"
......@@ -51,5 +50,3 @@ public:
bool save(const KigDocument &data, const QString &file);
// bool save( const KigDocument& data, QTextStream& stream );
};
#endif
......@@ -3,8 +3,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_PGFEXPORTERIMPVISITOR_H
#define KIG_FILTERS_PGFEXPORTERIMPVISITOR_H
#pragma once
#include "../kig/kig_document.h"
#include "../kig/kig_part.h"
......@@ -119,5 +118,3 @@ private:
*/
void plotGenericCurve(const CurveImp *imp);
};
#endif
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_SVGEXPORTER_H
#define KIG_FILTERS_SVGEXPORTER_H
#pragma once
#include "exporter.h"
......@@ -23,5 +22,3 @@ public:
QString menuIcon() const override;
void run(const KigPart &part, KigWidget &w) override;
};
#endif
......@@ -2,8 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef KIG_FILTERS_SVGEXPORTEROPTIONS_H
#define KIG_FILTERS_SVGEXPORTEROPTIONS_H
#pragma once
#include <QWidget>
......@@ -24,5 +23,3 @@ public:
void setAxes(bool axes);
bool showAxes() const;
};
#endif
Supports Markdown
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