mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 06:02:29 -06:00
Use #pragma once instead of include guards
This commit is contained in:
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef DOWNLOADEDPIECESBAR_H
|
||||
#define DOWNLOADEDPIECESBAR_H
|
||||
#pragma once
|
||||
|
||||
#include <QBitArray>
|
||||
#include <QtContainerFwd>
|
||||
@@ -63,5 +62,3 @@ private:
|
||||
QBitArray m_pieces;
|
||||
QBitArray m_downloadedPieces;
|
||||
};
|
||||
|
||||
#endif // DOWNLOADEDPIECESBAR_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef PEERLISTSORTMODEL_H
|
||||
#define PEERLISTSORTMODEL_H
|
||||
#pragma once
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
@@ -47,5 +46,3 @@ public:
|
||||
private:
|
||||
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
|
||||
};
|
||||
|
||||
#endif // PEERLISTSORTMODEL_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef PEERLISTWIDGET_H
|
||||
#define PEERLISTWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <QHash>
|
||||
#include <QSet>
|
||||
@@ -109,5 +108,3 @@ private:
|
||||
QHash<QHostAddress, QSet<QStandardItem *>> m_itemsByIP; // must be kept in sync with `m_peerItems`
|
||||
bool m_resolveCountries;
|
||||
};
|
||||
|
||||
#endif // PEERLISTWIDGET_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef PEERADDITION_H
|
||||
#define PEERADDITION_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QVector>
|
||||
@@ -56,5 +55,3 @@ private:
|
||||
Ui::PeersAdditionDialog *m_ui;
|
||||
QVector<BitTorrent::PeerAddress> m_peersList;
|
||||
};
|
||||
|
||||
#endif // PEERADDITION_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef PIECEAVAILABILITYBAR_H
|
||||
#define PIECEAVAILABILITYBAR_H
|
||||
#pragma once
|
||||
|
||||
#include "piecesbar.h"
|
||||
|
||||
@@ -56,5 +55,3 @@ private:
|
||||
// scale int vector to float vector
|
||||
QVector<float> intToFloatVector(const QVector<int> &vecin, int reqSize);
|
||||
};
|
||||
|
||||
#endif // PIECEAVAILABILITYBAR_H
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef PIECESBAR_H
|
||||
#define PIECESBAR_H
|
||||
#pragma once
|
||||
|
||||
#include <QColor>
|
||||
#include <QImage>
|
||||
@@ -95,5 +94,3 @@ private:
|
||||
bool m_hovered;
|
||||
QRect m_highlitedRegion; //!< part of the bar can be highlighted; this rectangle is in the same frame as m_image
|
||||
};
|
||||
|
||||
#endif // PIECESBAR_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef PROPERTIESWIDGET_H
|
||||
#define PROPERTIESWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <QList>
|
||||
#include <QWidget>
|
||||
@@ -125,5 +124,3 @@ private:
|
||||
LineEdit *m_contentFilterLine;
|
||||
int m_handleWidth;
|
||||
};
|
||||
|
||||
#endif // PROPERTIESWIDGET_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef PROPLISTDELEGATE_H
|
||||
#define PROPLISTDELEGATE_H
|
||||
#pragma once
|
||||
|
||||
#include "gui/progressbardelegate.h"
|
||||
|
||||
@@ -71,5 +70,3 @@ private:
|
||||
|
||||
PropertiesWidget *m_properties;
|
||||
};
|
||||
|
||||
#endif // PROPLISTDELEGATE_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef PROPTABBAR_H
|
||||
#define PROPTABBAR_H
|
||||
#pragma once
|
||||
|
||||
#include <QHBoxLayout>
|
||||
|
||||
@@ -64,5 +63,3 @@ private:
|
||||
QButtonGroup *m_btnGroup;
|
||||
int m_currentIndex;
|
||||
};
|
||||
|
||||
#endif // PROPTABBAR_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef SPEEDPLOTVIEW_H
|
||||
#define SPEEDPLOTVIEW_H
|
||||
#pragma once
|
||||
|
||||
#ifndef Q_MOC_RUN
|
||||
#include <boost/circular_buffer.hpp>
|
||||
@@ -131,5 +130,3 @@ private:
|
||||
TimePeriod m_period;
|
||||
int m_viewablePointsCount;
|
||||
};
|
||||
|
||||
#endif // SPEEDPLOTVIEW_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef SPEEDWIDGET_H
|
||||
#define SPEEDWIDGET_H
|
||||
#pragma once
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QWidget>
|
||||
@@ -80,5 +79,3 @@ private:
|
||||
QMenu *m_graphsMenu;
|
||||
QList<QAction *> m_graphsMenuActions;
|
||||
};
|
||||
|
||||
#endif // SPEEDWIDGET_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef TRACKERLIST_H
|
||||
#define TRACKERLIST_H
|
||||
#pragma once
|
||||
|
||||
#include <QTreeWidget>
|
||||
#include <QtContainerFwd>
|
||||
@@ -95,5 +94,3 @@ private:
|
||||
QTreeWidgetItem *m_PEXItem;
|
||||
QTreeWidgetItem *m_LSDItem;
|
||||
};
|
||||
|
||||
#endif // TRACKERLIST_H
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
* exception statement from your version.
|
||||
*/
|
||||
|
||||
#ifndef TRACKERSADDITION_H
|
||||
#define TRACKERSADDITION_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QtContainerFwd>
|
||||
@@ -68,5 +67,3 @@ private:
|
||||
Ui::TrackersAdditionDialog *m_ui;
|
||||
BitTorrent::TorrentHandle *const m_torrent;
|
||||
};
|
||||
|
||||
#endif // TRACKERSADDITION_H
|
||||
|
||||
Reference in New Issue
Block a user