diff --git a/src/capture/capturemodification.h b/src/capture/capturemodification.h index 84b16d00..96a777c1 100644 --- a/src/capture/capturemodification.h +++ b/src/capture/capturemodification.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef CAPTURECHANGE_H -#define CAPTURECHANGE_H +#pragma once #include "src/capture/widget/capturebutton.h" #include @@ -51,5 +50,3 @@ protected: int m_thickness; }; - -#endif // CAPTURECHANGE_H diff --git a/src/capture/screenshot.h b/src/capture/screenshot.h index f37c1bcc..ff1a9ceb 100644 --- a/src/capture/screenshot.h +++ b/src/capture/screenshot.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef SCREENSHOT_H -#define SCREENSHOT_H +#pragma once #include #include @@ -49,5 +48,3 @@ private: void paintInPainter(QPainter &, const CaptureModification *); }; - -#endif // SCREENSHOT_H diff --git a/src/capture/tools/applauncher.h b/src/capture/tools/applauncher.h index 8247ff07..44e677ea 100644 --- a/src/capture/tools/applauncher.h +++ b/src/capture/tools/applauncher.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef APPOPENER_H -#define APPOPENER_H +#pragma once #include "capturetool.h" @@ -42,5 +41,3 @@ public: void onPressed() override; }; - -#endif // APPOPENER_H diff --git a/src/capture/tools/arrowtool.h b/src/capture/tools/arrowtool.h index 419e5dd4..8f617a3b 100644 --- a/src/capture/tools/arrowtool.h +++ b/src/capture/tools/arrowtool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef ARROWTOOL_H -#define ARROWTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // ARROWTOOL_H diff --git a/src/capture/tools/blurtool.h b/src/capture/tools/blurtool.h index 31f41073..5f864928 100644 --- a/src/capture/tools/blurtool.h +++ b/src/capture/tools/blurtool.h @@ -15,9 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . - -#ifndef BLURTOOL_H -#define BLURTOOL_H +#pragma once #include "capturetool.h" @@ -47,5 +45,3 @@ private: bool needsAdjustment(const QPoint &p0, const QPoint &p1) const; }; - -#endif // BLURTOOL_H diff --git a/src/capture/tools/capturetool.h b/src/capture/tools/capturetool.h index beda6dd6..86a2710a 100644 --- a/src/capture/tools/capturetool.h +++ b/src/capture/tools/capturetool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef CAPTURETOOL_H -#define CAPTURETOOL_H +#pragma once #include #include @@ -71,5 +70,3 @@ public slots: virtual void onPressed() = 0; }; - -#endif // CAPTURETOOL_H diff --git a/src/capture/tools/circletool.h b/src/capture/tools/circletool.h index bbd85e99..40976574 100644 --- a/src/capture/tools/circletool.h +++ b/src/capture/tools/circletool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef CIRCLETOOL_H -#define CIRCLETOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // CIRCLETOOL_H diff --git a/src/capture/tools/copytool.h b/src/capture/tools/copytool.h index cd1f1fd5..a2457c32 100644 --- a/src/capture/tools/copytool.h +++ b/src/capture/tools/copytool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef COPYTOOL_H -#define COPYTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // COPYTOOL_H diff --git a/src/capture/tools/exittool.h b/src/capture/tools/exittool.h index c45a455c..fbe46169 100644 --- a/src/capture/tools/exittool.h +++ b/src/capture/tools/exittool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef EXITTOOL_H -#define EXITTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // EXITTOOL_H diff --git a/src/capture/tools/imguruploadertool.h b/src/capture/tools/imguruploadertool.h index 1a350b7e..a67b2b4c 100644 --- a/src/capture/tools/imguruploadertool.h +++ b/src/capture/tools/imguruploadertool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef IMGURUPLOADERTOOL_H -#define IMGURUPLOADERTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // IMGURUPLOADERTOOL_H diff --git a/src/capture/tools/linetool.h b/src/capture/tools/linetool.h index 80e6d8af..a68a1b20 100644 --- a/src/capture/tools/linetool.h +++ b/src/capture/tools/linetool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef LINETOOL_H -#define LINETOOL_H +#pragma once #include "capturetool.h" @@ -46,5 +45,3 @@ private: bool needsAdjustment(const QPoint &p0, const QPoint &p1) const; }; - -#endif // LINETOOL_H diff --git a/src/capture/tools/markertool.h b/src/capture/tools/markertool.h index 99d919d7..be8524f9 100644 --- a/src/capture/tools/markertool.h +++ b/src/capture/tools/markertool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef MARKERTOOL_H -#define MARKERTOOL_H +#pragma once #include "capturetool.h" @@ -46,5 +45,3 @@ private: bool needsAdjustment(const QPoint &p0, const QPoint &p1) const; }; - -#endif // MARKERTOOL_H diff --git a/src/capture/tools/movetool.h b/src/capture/tools/movetool.h index 761af8ce..a0b81587 100644 --- a/src/capture/tools/movetool.h +++ b/src/capture/tools/movetool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef MOVETOOL_H -#define MOVETOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // MOVETOOL_H diff --git a/src/capture/tools/penciltool.h b/src/capture/tools/penciltool.h index f8725119..68b44a78 100644 --- a/src/capture/tools/penciltool.h +++ b/src/capture/tools/penciltool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef PENCILTOOL_H -#define PENCILTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // PENCILTOOL_H diff --git a/src/capture/tools/rectangletool.h b/src/capture/tools/rectangletool.h index e96dc54d..660b67e1 100644 --- a/src/capture/tools/rectangletool.h +++ b/src/capture/tools/rectangletool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef RECTANGLELTOOL_H -#define RECTANGLELTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // RECTANGLELTOOL_H diff --git a/src/capture/tools/savetool.h b/src/capture/tools/savetool.h index 72d22133..a565fc57 100644 --- a/src/capture/tools/savetool.h +++ b/src/capture/tools/savetool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef SAVETOOL_H -#define SAVETOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // SAVETOOL_H diff --git a/src/capture/tools/selectiontool.h b/src/capture/tools/selectiontool.h index 00ce7b62..ddadb0af 100644 --- a/src/capture/tools/selectiontool.h +++ b/src/capture/tools/selectiontool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef SELECTIONTOOL_H -#define SELECTIONTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // SELECTIONTOOL_H diff --git a/src/capture/tools/sizeindicatortool.h b/src/capture/tools/sizeindicatortool.h index 7cd793f2..6cbc6182 100644 --- a/src/capture/tools/sizeindicatortool.h +++ b/src/capture/tools/sizeindicatortool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef SIZEINDICATORTOOL_H -#define SIZEINDICATORTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // SIZEINDICATORTOOL_H diff --git a/src/capture/tools/toolfactory.h b/src/capture/tools/toolfactory.h index 6087e448..949e483c 100644 --- a/src/capture/tools/toolfactory.h +++ b/src/capture/tools/toolfactory.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef TOOLFACTORY_H -#define TOOLFACTORY_H +#pragma once #include #include "src/capture/widget/capturebutton.h" @@ -43,5 +42,3 @@ public: QObject *parent = nullptr); }; - -#endif // TOOLFACTORY_H diff --git a/src/capture/tools/undotool.h b/src/capture/tools/undotool.h index 11fa2a24..e59640f4 100644 --- a/src/capture/tools/undotool.h +++ b/src/capture/tools/undotool.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef UNDOTOOL_H -#define UNDOTOOL_H +#pragma once #include "capturetool.h" @@ -43,5 +42,3 @@ public: void onPressed() override; }; - -#endif // UNDOTOOL_H diff --git a/src/capture/widget/buttonhandler.h b/src/capture/widget/buttonhandler.h index 3b819e58..0fa0f780 100644 --- a/src/capture/widget/buttonhandler.h +++ b/src/capture/widget/buttonhandler.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef BUTTONHANDLER_H -#define BUTTONHANDLER_H +#pragma once #include "capturebutton.h" #include @@ -86,5 +85,3 @@ private: void adjustHorizontalCenter(QPoint ¢er); }; - -#endif // BUTTONHANDLER_H diff --git a/src/capture/widget/capturebutton.h b/src/capture/widget/capturebutton.h index 7a9d1225..8e0dab35 100644 --- a/src/capture/widget/capturebutton.h +++ b/src/capture/widget/capturebutton.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef BUTTON_H -#define BUTTON_H +#pragma once #include #include @@ -92,5 +91,3 @@ private: void updateIcon(); }; - -#endif // BUTTON_H diff --git a/src/capture/widget/capturewidget.h b/src/capture/widget/capturewidget.h index ba07c3d2..bca575dc 100644 --- a/src/capture/widget/capturewidget.h +++ b/src/capture/widget/capturewidget.h @@ -21,8 +21,7 @@ // Based on KDE's KSnapshot regiongrabber.cpp, revision 796531, Copyright 2007 Luca Gugelmann // released under the GNU LGPL -#ifndef CAPTUREWIDGET_H -#define CAPTUREWIDGET_H +#pragma once #include "capturebutton.h" #include "src/capture/tools/capturetool.h" @@ -141,5 +140,3 @@ private: ConfigHandler m_config; }; - -#endif // CAPTUREWIDGET_H diff --git a/src/capture/widget/colorpicker.h b/src/capture/widget/colorpicker.h index 197f49f1..fc3d5516 100644 --- a/src/capture/widget/colorpicker.h +++ b/src/capture/widget/colorpicker.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef COLORPICKER_H -#define COLORPICKER_H +#pragma once #include @@ -46,5 +45,3 @@ private: QColor m_uiColor, m_drawColor; }; - -#endif // COLORPICKER_H diff --git a/src/capture/widget/notifierbox.h b/src/capture/widget/notifierbox.h index 78616f67..b01b5fc9 100644 --- a/src/capture/widget/notifierbox.h +++ b/src/capture/widget/notifierbox.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef NOTIFIERBOX_H -#define NOTIFIERBOX_H +#pragma once #include @@ -41,5 +40,3 @@ private: QColor m_bgColor; QColor m_foregroundColor; }; - -#endif // NOTIFIERBOX_H diff --git a/src/capture/workers/imgur/imagelabel.h b/src/capture/workers/imgur/imagelabel.h index e723c404..f11379de 100644 --- a/src/capture/workers/imgur/imagelabel.h +++ b/src/capture/workers/imgur/imagelabel.h @@ -18,8 +18,7 @@ // This code is a modified version of the KDE software Spectacle // /src/Gui/KSImageWidget.h commit cbbd6d45f6426ccbf1a82b15fdf98613ccccbbe9 -#ifndef IMAGELABEL_H -#define IMAGELABEL_H +#pragma once #include #include @@ -55,5 +54,3 @@ private: QPoint m_dragStartPosition; }; - -#endif // IMAGELABEL_H diff --git a/src/capture/workers/imgur/imguruploader.h b/src/capture/workers/imgur/imguruploader.h index 1de45fef..392c932b 100644 --- a/src/capture/workers/imgur/imguruploader.h +++ b/src/capture/workers/imgur/imguruploader.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef IMGURUPLOADER_H -#define IMGURUPLOADER_H +#pragma once #include #include @@ -64,5 +63,3 @@ private: void upload(); void onUploadOk(); }; - -#endif // IMGURUPLOADER_H diff --git a/src/capture/workers/imgur/loadspinner.h b/src/capture/workers/imgur/loadspinner.h index dc802211..93843bf5 100644 --- a/src/capture/workers/imgur/loadspinner.h +++ b/src/capture/workers/imgur/loadspinner.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef LOADSPINNER_H -#define LOADSPINNER_H +#pragma once #include @@ -49,5 +48,3 @@ private: QRect m_frame; void updateFrame(); }; - -#endif // LOADSPINNER_H diff --git a/src/capture/workers/imgur/notificationwidget.h b/src/capture/workers/imgur/notificationwidget.h index 5e419c6a..02e5df2e 100644 --- a/src/capture/workers/imgur/notificationwidget.h +++ b/src/capture/workers/imgur/notificationwidget.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef NOTIFICATIONWIDGET_H -#define NOTIFICATIONWIDGET_H +#pragma once #include @@ -46,5 +45,3 @@ private: void animatedHide(); }; - -#endif // NOTIFICATIONWIDGET_H diff --git a/src/capture/workers/launcher/applauncherwidget.h b/src/capture/workers/launcher/applauncherwidget.h index 3d59ffe4..bb785752 100644 --- a/src/capture/workers/launcher/applauncherwidget.h +++ b/src/capture/workers/launcher/applauncherwidget.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef APPLAUNCHERWIDGET_H -#define APPLAUNCHERWIDGET_H +#pragma once #include "src/utils/desktopfileparse.h" #include @@ -58,5 +57,3 @@ private: QListWidget *m_filterList; QTabWidget *m_tabWidget; }; - -#endif // APPLAUNCHERWIDGET_H diff --git a/src/capture/workers/launcher/launcheritemdelegate.h b/src/capture/workers/launcher/launcheritemdelegate.h index 3a552ff8..5b311d8d 100644 --- a/src/capture/workers/launcher/launcheritemdelegate.h +++ b/src/capture/workers/launcher/launcheritemdelegate.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef LAUNCHERITEMDELEGATE_H -#define LAUNCHERITEMDELEGATE_H +#pragma once #include "src/utils/desktopfileparse.h" #include @@ -36,5 +35,3 @@ public: private: }; - -#endif // LAUNCHERITEMDELEGATE_H diff --git a/src/capture/workers/launcher/openwithprogram.h b/src/capture/workers/launcher/openwithprogram.h index f144561d..f3ad602a 100644 --- a/src/capture/workers/launcher/openwithprogram.h +++ b/src/capture/workers/launcher/openwithprogram.h @@ -15,11 +15,8 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef OPENWITHPROGRAM_H -#define OPENWITHPROGRAM_H +#pragma once #include void showOpenWithMenu(const QPixmap &capture); - -#endif // OPENWITHPROGRAM_H diff --git a/src/capture/workers/launcher/terminallauncher.h b/src/capture/workers/launcher/terminallauncher.h index bc33365b..ccfb4ec7 100644 --- a/src/capture/workers/launcher/terminallauncher.h +++ b/src/capture/workers/launcher/terminallauncher.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef TERMINALLAUNCHER_H -#define TERMINALLAUNCHER_H +#pragma once #include @@ -35,5 +34,3 @@ public: private: static TerminalApp getPreferedTerminal(); }; - -#endif // TERMINALLAUNCHER_H diff --git a/src/capture/workers/screenshotsaver.h b/src/capture/workers/screenshotsaver.h index 948ffcc6..3e8df01c 100644 --- a/src/capture/workers/screenshotsaver.h +++ b/src/capture/workers/screenshotsaver.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef SCREENSHOTSAVER_H -#define SCREENSHOTSAVER_H +#pragma once class QPixmap; class QString; @@ -31,5 +30,3 @@ public: void saveToFilesystemGUI(const QPixmap &capture); }; - -#endif // SCREENSHOTSAVER_H diff --git a/src/cli/commandargument.h b/src/cli/commandargument.h index 031640b9..20f9fdc8 100644 --- a/src/cli/commandargument.h +++ b/src/cli/commandargument.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef COMMANDARGUMENT_H -#define COMMANDARGUMENT_H +#pragma once #include @@ -41,5 +40,3 @@ private: QString m_description; }; - -#endif // COMMANDARGUMENT_H diff --git a/src/cli/commandlineparser.h b/src/cli/commandlineparser.h index 48eda57c..587ff85e 100644 --- a/src/cli/commandlineparser.h +++ b/src/cli/commandlineparser.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef COMMANDLINEPARSER_H -#define COMMANDLINEPARSER_H +#pragma once #include "src/cli/commandargument.h" #include "src/cli/commandoption.h" @@ -90,5 +89,3 @@ private: Node *const actualNode); }; - -#endif // COMMANDLINEPARSER_H diff --git a/src/cli/commandoption.h b/src/cli/commandoption.h index a711eca0..04e413ab 100644 --- a/src/cli/commandoption.h +++ b/src/cli/commandoption.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef COMMANDOPTION_H -#define COMMANDOPTION_H +#pragma once #include #include @@ -64,5 +63,3 @@ private: QString m_errorMsg; }; - -#endif // COMMANDOPTION_H diff --git a/src/config/buttonlistview.h b/src/config/buttonlistview.h index f0ff902f..6dfd4424 100644 --- a/src/config/buttonlistview.h +++ b/src/config/buttonlistview.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef BUTTONLISTVIEW_H -#define BUTTONLISTVIEW_H +#pragma once #include "src/capture/widget/capturebutton.h" #include @@ -42,5 +41,3 @@ private: void updateActiveButtons(QListWidgetItem *); }; - -#endif // BUTTONLISTVIEW_H diff --git a/src/config/clickablelabel.h b/src/config/clickablelabel.h index 67c4c2fb..9ddc0186 100644 --- a/src/config/clickablelabel.h +++ b/src/config/clickablelabel.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef CLICKABLELABEL_H -#define CLICKABLELABEL_H +#pragma once #include @@ -34,5 +33,3 @@ private: void mousePressEvent (QMouseEvent *); }; - -#endif // CLICKABLELABEL_H diff --git a/src/config/configwindow.h b/src/config/configwindow.h index 6c0e7b4c..088002da 100644 --- a/src/config/configwindow.h +++ b/src/config/configwindow.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef CONFIGURATION_H -#define CONFIGURATION_H +#pragma once #include @@ -43,5 +42,3 @@ private: QFileSystemWatcher *m_configWatcher; }; - -#endif // CONFIGURATION_H diff --git a/src/config/extendedslider.h b/src/config/extendedslider.h index 533e42bc..78429ce1 100644 --- a/src/config/extendedslider.h +++ b/src/config/extendedslider.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef EXTENDEDSLIDER_H -#define EXTENDEDSLIDER_H +#pragma once #include #include @@ -41,5 +40,3 @@ private: QTimer m_timer; }; - -#endif // EXTENDEDSLIDER_H diff --git a/src/config/filenameeditor.h b/src/config/filenameeditor.h index 53e3dcb5..a2916e06 100644 --- a/src/config/filenameeditor.h +++ b/src/config/filenameeditor.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef FILENAMEEDITOR_H -#define FILENAMEEDITOR_H +#pragma once #include #include @@ -56,5 +55,3 @@ private slots: void resetName(); }; - -#endif // FILENAMEEDITOR_H diff --git a/src/config/geneneralconf.h b/src/config/geneneralconf.h index 5424c40b..cfe603b2 100644 --- a/src/config/geneneralconf.h +++ b/src/config/geneneralconf.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef GENENERALCONF_H -#define GENENERALCONF_H +#pragma once #include @@ -58,5 +57,3 @@ private: void initAutostart(); }; - -#endif // GENENERALCONF_H diff --git a/src/config/strftimechooserwidget.h b/src/config/strftimechooserwidget.h index b718c4da..5628010e 100644 --- a/src/config/strftimechooserwidget.h +++ b/src/config/strftimechooserwidget.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef STRFTIMECHOOSERWIDGET_H -#define STRFTIMECHOOSERWIDGET_H +#pragma once #include @@ -33,5 +32,3 @@ private: static QMap m_buttonData; }; - -#endif // STRFTIMECHOOSERWIDGET_H diff --git a/src/config/uicoloreditor.h b/src/config/uicoloreditor.h index 49887112..5c253946 100644 --- a/src/config/uicoloreditor.h +++ b/src/config/uicoloreditor.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef UICOLORPICKER_H -#define UICOLORPICKER_H +#pragma once #include "color_wheel.hpp" #include "src/capture/widget/capturebutton.h" @@ -58,5 +57,3 @@ private: void initButtons(); }; - -#endif // UICOLORPICKER_H diff --git a/src/config/visualseditor.h b/src/config/visualseditor.h index 564f4eec..bd754382 100644 --- a/src/config/visualseditor.h +++ b/src/config/visualseditor.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef VISUALSEDITOR_H -#define VISUALSEDITOR_H +#pragma once #include @@ -46,5 +45,3 @@ private: void initWidgets(); void initOpacitySlider(); }; - -#endif // VISUALSEDITOR_H diff --git a/src/core/controller.h b/src/core/controller.h index 053e171c..0d85d76e 100644 --- a/src/core/controller.h +++ b/src/core/controller.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef CONTROLLER_H -#define CONTROLLER_H +#pragma once #include #include @@ -66,5 +65,3 @@ private: QPointer m_trayIcon; }; - -#endif // CONTROLLER_H diff --git a/src/core/flameshotdbusadapter.h b/src/core/flameshotdbusadapter.h index 80ecb599..e649e1b4 100644 --- a/src/core/flameshotdbusadapter.h +++ b/src/core/flameshotdbusadapter.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef FLAMESHOTDBUSADAPTER_H -#define FLAMESHOTDBUSADAPTER_H +#pragma once #include #include "src/core/controller.h" @@ -41,5 +40,3 @@ public slots: Q_NOREPLY void trayIconEnabled(bool enabled); }; - -#endif // FLAMESHOTDBUSADAPTER_H diff --git a/src/core/globalshortcutfilter.h b/src/core/globalshortcutfilter.h index 7c912b3b..9b63437f 100644 --- a/src/core/globalshortcutfilter.h +++ b/src/core/globalshortcutfilter.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef GLOBALSHORTCUTFILTER_H -#define GLOBALSHORTCUTFILTER_H +#pragma once #include #include @@ -38,5 +37,3 @@ private: bool unregisterShortcut(quint32 nativeKey, quint32 nativeMods); }; - -#endif // GLOBALSHORTCUTFILTER_H diff --git a/src/core/resourceexporter.h b/src/core/resourceexporter.h index 91bac577..995aafe4 100644 --- a/src/core/resourceexporter.h +++ b/src/core/resourceexporter.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef RESOURCEEXPORTER_H -#define RESOURCEEXPORTER_H +#pragma once #include @@ -30,5 +29,3 @@ public: void captureToImgur(const QPixmap &p); void captureToProgram(const QPixmap &p); }; - -#endif // RESOURCEEXPORTER_H diff --git a/src/infowindow.h b/src/infowindow.h index 96d7937c..3732db2a 100644 --- a/src/infowindow.h +++ b/src/infowindow.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef INFOWINDOW_H -#define INFOWINDOW_H +#pragma once #include @@ -39,5 +38,3 @@ private: static QVector m_description; }; - -#endif // INFOWINDOW_H diff --git a/src/utils/confighandler.h b/src/utils/confighandler.h index 989dc316..b1e6658c 100644 --- a/src/utils/confighandler.h +++ b/src/utils/confighandler.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef CONFIGHANDLER_H -#define CONFIGHANDLER_H +#pragma once #include "src/capture/widget/capturebutton.h" #include @@ -80,5 +79,3 @@ private: QList fromButtonToInt(const QList &l); }; - -#endif // CONFIGHANDLER_H diff --git a/src/utils/dbusutils.h b/src/utils/dbusutils.h index 96c74ae4..40f80e42 100644 --- a/src/utils/dbusutils.h +++ b/src/utils/dbusutils.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef TERMINALUTILS_H -#define TERMINALUTILS_H +#pragma once #include "src/cli/commandlineparser.h" #include @@ -38,5 +37,3 @@ public slots: private: uint m_id; }; - -#endif // TERMINALUTILS_H diff --git a/src/utils/desktopfileparse.h b/src/utils/desktopfileparse.h index e50d7105..74b772fe 100644 --- a/src/utils/desktopfileparse.h +++ b/src/utils/desktopfileparse.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef DESKTOPFILEPARSE_H -#define DESKTOPFILEPARSE_H +#pragma once #include #include @@ -71,5 +70,3 @@ private: QIcon m_defaultIcon; QList m_appList; }; - -#endif // DESKTOPFILEPARSE_H diff --git a/src/utils/desktopinfo.h b/src/utils/desktopinfo.h index c0ce9c18..a28d2d40 100644 --- a/src/utils/desktopinfo.h +++ b/src/utils/desktopinfo.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef DESKTOPINFO_H -#define DESKTOPINFO_H +#pragma once #include @@ -44,5 +43,3 @@ private: QString DESKTOP_SESSION; }; - -#endif // DESKTOPINFO_H diff --git a/src/utils/filenamehandler.h b/src/utils/filenamehandler.h index e205435c..2bc569d5 100644 --- a/src/utils/filenamehandler.h +++ b/src/utils/filenamehandler.h @@ -15,12 +15,10 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef FILENAMEHANDLER_H -#define FILENAMEHANDLER_H +#pragma once #include - class FileNameHandler : public QObject { Q_OBJECT @@ -47,5 +45,3 @@ private: void fixPath(QString &directory, QString &filename); }; - -#endif // FILENAMEHANDLER_H diff --git a/src/utils/screengrabber.h b/src/utils/screengrabber.h index 5de96955..c1b9a44c 100644 --- a/src/utils/screengrabber.h +++ b/src/utils/screengrabber.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef SCREENGRABBER_H -#define SCREENGRABBER_H +#pragma once #include "src/utils/desktopinfo.h" #include @@ -31,5 +30,3 @@ public: private: DesktopInfo m_info; }; - -#endif // SCREENGRABBER_H diff --git a/src/utils/systemnotification.h b/src/utils/systemnotification.h index e9808215..e97195b0 100644 --- a/src/utils/systemnotification.h +++ b/src/utils/systemnotification.h @@ -15,8 +15,7 @@ // You should have received a copy of the GNU General Public License // along with Flameshot. If not, see . -#ifndef SYSTEMNOTIFICATION_H -#define SYSTEMNOTIFICATION_H +#pragma once #include @@ -36,5 +35,3 @@ private: QDBusInterface *m_interface; }; - -#endif // SYSTEMNOTIFICATION_H