Replaced ifdef include guards with #pragma once
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef ADVANCEDVIEWDIALOG_H
|
||||
#define ADVANCEDVIEWDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@@ -28,5 +27,3 @@ private:
|
||||
BookingsModel *m_bookingsModel;
|
||||
TimeAssignmentsModel *m_timeAssignmentsModel;
|
||||
};
|
||||
|
||||
#endif // ADVANCEDVIEWDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef ADVANCEDVIEWPLUGIN_H
|
||||
#define ADVANCEDVIEWPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QTranslator>
|
||||
@@ -23,5 +22,3 @@ public:
|
||||
private:
|
||||
QTranslator m_translator;
|
||||
};
|
||||
|
||||
#endif // ADVANCEDVIEWPLUGIN_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef ADVANCEDVIEWWIDGET_H
|
||||
#define ADVANCEDVIEWWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <QToolButton>
|
||||
|
||||
@@ -19,5 +18,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
StripsWidget &m_stripsWidget;
|
||||
};
|
||||
|
||||
#endif // ADVANCEDVIEWWIDGET_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef BOOKINGDIALOG_H
|
||||
#define BOOKINGDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTime>
|
||||
@@ -29,5 +28,3 @@ public:
|
||||
private:
|
||||
Ui::BookingDialog *ui;
|
||||
};
|
||||
|
||||
#endif // BOOKINGDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef TIMEASSIGNMENTDIALOG_H
|
||||
#define TIMEASSIGNMENTDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTime>
|
||||
@@ -40,5 +39,3 @@ public:
|
||||
private:
|
||||
Ui::TimeAssignmentDialog *ui;
|
||||
};
|
||||
|
||||
#endif // TIMEASSIGNMENTDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef BOOKINGSMODEL_H
|
||||
#define BOOKINGSMODEL_H
|
||||
#pragma once
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QVector>
|
||||
@@ -36,5 +35,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
StripsWidget &m_stripsWidget;
|
||||
};
|
||||
|
||||
#endif // BOOKINGSMODEL_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef TIMEASSIGNMENTSMODEL_H
|
||||
#define TIMEASSIGNMENTSMODEL_H
|
||||
#pragma once
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QVector>
|
||||
@@ -37,5 +36,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
StripsWidget &m_stripsWidget;
|
||||
};
|
||||
|
||||
#endif // TIMEASSIGNMENTSMODEL_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef LUNCHMEALDIALOG_H
|
||||
#define LUNCHMEALDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -25,5 +24,3 @@ private:
|
||||
Ui::LunchMealDialog *ui;
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // LUNCHMEALDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef LUNCHMEALPLUGIN_H
|
||||
#define LUNCHMEALPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QTranslator>
|
||||
@@ -23,5 +22,3 @@ public:
|
||||
private:
|
||||
QTranslator m_translator;
|
||||
};
|
||||
|
||||
#endif // LUNCHMEALPLUGIN_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef LUNCHMEALWIDGET_H
|
||||
#define LUNCHMEALWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <QToolButton>
|
||||
|
||||
@@ -17,5 +16,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
StripsWidget &m_stripsWidget;
|
||||
};
|
||||
|
||||
#endif // LUNCHMEALWIDGET_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef PRESENCEPLUGIN_H
|
||||
#define PRESENCEPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QTranslator>
|
||||
@@ -23,5 +22,3 @@ public:
|
||||
private:
|
||||
QTranslator m_translator;
|
||||
};
|
||||
|
||||
#endif // PRESENCEPLUGIN_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef PRESENCEWIDGET_H
|
||||
#define PRESENCEWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -31,5 +30,3 @@ private:
|
||||
|
||||
std::unique_ptr<GetPresenceStatusReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // PRESENCEWIDGET_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef REPORTSPLUGIN_H
|
||||
#define REPORTSPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QTranslator>
|
||||
@@ -23,5 +22,3 @@ public:
|
||||
private:
|
||||
QTranslator m_translator;
|
||||
};
|
||||
|
||||
#endif // REPORTSPLUGIN_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef REPORTSWIDGET_H
|
||||
#define REPORTSWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include <QDate>
|
||||
@@ -39,5 +38,3 @@ private:
|
||||
|
||||
std::unique_ptr<GetReportReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // REPORTSWIDGET_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef UPDATERDIALOG_H
|
||||
#define UPDATERDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QUrl>
|
||||
@@ -29,5 +28,3 @@ private:
|
||||
|
||||
QUrl m_url;
|
||||
};
|
||||
|
||||
#endif // UPDATERDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef UPDATERPLUGIN_H
|
||||
#define UPDATERPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QTranslator>
|
||||
@@ -23,5 +22,3 @@ public:
|
||||
private:
|
||||
QTranslator m_translator;
|
||||
};
|
||||
|
||||
#endif // UPDATERPLUGIN_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef WEATHERPLUGIN_H
|
||||
#define WEATHERPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QTranslator>
|
||||
@@ -21,5 +20,3 @@ public:
|
||||
private:
|
||||
QTranslator m_translator;
|
||||
};
|
||||
|
||||
#endif // WEATHERPLUGIN_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef WEATHERWIDGET_H
|
||||
#define WEATHERWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -24,5 +23,3 @@ private:
|
||||
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // WEATHERWIDGET_H
|
||||
|
@@ -1,8 +1,4 @@
|
||||
#ifndef CPP14POLYFILLS_H
|
||||
#define CPP14POLYFILLS_H
|
||||
|
||||
#ifndef CPP14POLYFILLS_INCLUDED
|
||||
#define CPP14POLYFILLS_INCLUDED
|
||||
#pragma once
|
||||
|
||||
#if __cplusplus < 201402L
|
||||
|
||||
@@ -45,7 +41,3 @@ namespace std {
|
||||
}
|
||||
|
||||
#endif // __cplusplus < 201402L
|
||||
|
||||
#endif // CPP14POLYFILLS_INCLUDED
|
||||
|
||||
#endif // CPP14POLYFILLS_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef ABOUTMEDIALOG_H
|
||||
#define ABOUTMEDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@@ -19,5 +18,3 @@ public:
|
||||
private:
|
||||
Ui::AboutMeDialog *ui;
|
||||
};
|
||||
|
||||
#endif // ABOUTMEDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef AUTHENTICATIONDIALOG_H
|
||||
#define AUTHENTICATIONDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@@ -26,5 +25,3 @@ public:
|
||||
private:
|
||||
Ui::AuthenticationDialog *ui;
|
||||
};
|
||||
|
||||
#endif // AUTHENTICATIONDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef LANGUAGESELECTIONDIALOG_H
|
||||
#define LANGUAGESELECTIONDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QLocale>
|
||||
@@ -22,5 +21,3 @@ public:
|
||||
private:
|
||||
Ui::LanguageSelectionDialog *ui;
|
||||
};
|
||||
|
||||
#endif // LANGUAGESELECTIONDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef SETTINGSDIALOG_H
|
||||
#define SETTINGSDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@@ -23,5 +22,3 @@ private:
|
||||
Ui::SettingsDialog *ui;
|
||||
ZeiterfassungSettings &m_settings;
|
||||
};
|
||||
|
||||
#endif // SETTINGSDIALOG_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -77,5 +76,3 @@ private:
|
||||
std::array<StripsWidget*, 7> m_stripsWidgets;
|
||||
StripsWidget *m_currentStripWidget;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef CREATEBOOKINGREPLY_H
|
||||
#define CREATEBOOKINGREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -21,5 +20,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // CREATEBOOKINGREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef CREATETIMEASSIGNMENTREPLY_H
|
||||
#define CREATETIMEASSIGNMENTREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -24,5 +23,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
int m_timeAssignmentId;
|
||||
};
|
||||
|
||||
#endif // CREATETIMEASSIGNMENTREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef DELETEBOOKINGREPLY_H
|
||||
#define DELETEBOOKINGREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -21,5 +20,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // DELETEBOOKINGREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef DELETETIMEASSIGNMENT_H
|
||||
#define DELETETIMEASSIGNMENT_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -21,5 +20,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // DELETETIMEASSIGNMENT_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef GETBOOKINGSREPLY_H
|
||||
#define GETBOOKINGSREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -37,5 +36,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
QVector<Booking> m_bookings;
|
||||
};
|
||||
|
||||
#endif // GETBOOKINGSREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef GETPRESENCESTATUSREPLY_H
|
||||
#define GETPRESENCESTATUSREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -34,5 +33,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
QVector<PresenceStatus> m_presenceStatuses;
|
||||
};
|
||||
|
||||
#endif // GETPRESENCESTATUSREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef GETPROJECTSREPLY_H
|
||||
#define GETPROJECTSREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -33,5 +32,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
QVector<Project> m_projects;
|
||||
};
|
||||
|
||||
#endif // GETPROJECTSREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef GETREPORTREPLY_H
|
||||
#define GETREPORTREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -26,5 +25,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
QByteArray m_content;
|
||||
};
|
||||
|
||||
#endif // GETREPORTREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef GETTIMEASSIGNMENTSREPLY_H
|
||||
#define GETTIMEASSIGNMENTSREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -39,5 +38,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
QVector<TimeAssignment> m_timeAssignments;
|
||||
};
|
||||
|
||||
#endif // GETTIMEASSIGNMENTSREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef GETUSERINFOREPLY_H
|
||||
#define GETUSERINFOREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -50,5 +49,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply1;
|
||||
UserInfo m_userInfo;
|
||||
};
|
||||
|
||||
#endif // GETUSERINFOREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef LOGINPAGEREPLY_H
|
||||
#define LOGINPAGEREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -21,5 +20,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // LOGINPAGEREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef LOGINREPLY_H
|
||||
#define LOGINREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -21,5 +20,3 @@ private Q_SLOTS:
|
||||
private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
};
|
||||
|
||||
#endif // LOGINREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef UPDATEBOOKINGREPLY_H
|
||||
#define UPDATEBOOKINGREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -22,5 +21,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
int m_bookingId;
|
||||
};
|
||||
|
||||
#endif // UPDATEBOOKINGREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef UPDATETIMEASSIGNMENTREPLY_H
|
||||
#define UPDATETIMEASSIGNMENTREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -24,5 +23,3 @@ private:
|
||||
std::unique_ptr<QNetworkReply> m_reply;
|
||||
int m_timeAssignmentId;
|
||||
};
|
||||
|
||||
#endif // UPDATETIMEASSIGNMENTREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef ZEITERFASSUNGREPLY_H
|
||||
#define ZEITERFASSUNGREPLY_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -32,5 +31,3 @@ private:
|
||||
bool m_success;
|
||||
QString m_message;
|
||||
};
|
||||
|
||||
#endif // ZEITERFASSUNGREPLY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef STRIPFACTORY_H
|
||||
#define STRIPFACTORY_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -34,5 +33,3 @@ private:
|
||||
QByteArray m_bookingEndStrip;
|
||||
QByteArray m_timeAssignmentStrip;
|
||||
};
|
||||
|
||||
#endif // STRIPFACTORY_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef STRIPSWIDGET_H
|
||||
#define STRIPSWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -103,5 +102,3 @@ private:
|
||||
std::unique_ptr<GetBookingsReply> m_getBookingsReply;
|
||||
std::unique_ptr<GetTimeAssignmentsReply> m_getTimeAssignmentsReply;
|
||||
};
|
||||
|
||||
#endif // STRIPSWIDGET_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef TIMEUTILS_H
|
||||
#define TIMEUTILS_H
|
||||
#pragma once
|
||||
|
||||
#include <QTime>
|
||||
|
||||
@@ -9,5 +8,3 @@ int ZEITERFASSUNGLIBSHARED_EXPORT timeToSeconds(const QTime &time);
|
||||
QTime ZEITERFASSUNGLIBSHARED_EXPORT timeBetween(const QTime &l, const QTime &r);
|
||||
QTime ZEITERFASSUNGLIBSHARED_EXPORT timeAdd(const QTime &l, const QTime &r);
|
||||
QTime ZEITERFASSUNGLIBSHARED_EXPORT timeNormalise(const QTime &time);
|
||||
|
||||
#endif // TIMEUTILS_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef ZEITERFASSUNGAPI_H
|
||||
#define ZEITERFASSUNGAPI_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -69,5 +68,3 @@ private:
|
||||
QString m_url;
|
||||
QNetworkAccessManager *m_manager;
|
||||
};
|
||||
|
||||
#endif // ZEITERFASSUNGAPI_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef ZEITERFASSUNGLIB_GLOBAL_H
|
||||
#define ZEITERFASSUNGLIB_GLOBAL_H
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
@@ -8,5 +7,3 @@
|
||||
#else
|
||||
# define ZEITERFASSUNGLIBSHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#endif // ZEITERFASSUNGLIB_GLOBAL_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef ZEITERFASSUNGPLUGIN_H
|
||||
#define ZEITERFASSUNGPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -19,5 +18,3 @@ public:
|
||||
};
|
||||
|
||||
Q_DECLARE_INTERFACE(ZeiterfassungPlugin, "dbsoftware.zeiterfassung.plugin/1.0")
|
||||
|
||||
#endif // ZEITERFASSUNGPLUGIN_H
|
||||
|
@@ -1,5 +1,4 @@
|
||||
#ifndef ZEITERFASSUNGSETTINGS_H
|
||||
#define ZEITERFASSUNGSETTINGS_H
|
||||
#pragma once
|
||||
|
||||
#include <QSettings>
|
||||
#include <QLocale>
|
||||
@@ -57,5 +56,3 @@ public:
|
||||
private:
|
||||
void prependItem(const QString &name, const QString &item);
|
||||
};
|
||||
|
||||
#endif // ZEITERFASSUNGSETTINGS_H
|
||||
|
Reference in New Issue
Block a user