mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
fix CL warnings in the Qt code. mikedld
This commit is contained in:
parent
0e453bb873
commit
e0e98cbed5
7 changed files with 24 additions and 15 deletions
|
@ -17,6 +17,8 @@
|
|||
#include <QObject>
|
||||
#include <QIcon>
|
||||
|
||||
#include <stdint.h> // int64_t
|
||||
|
||||
class Speed;
|
||||
|
||||
class Formatter: public QObject
|
||||
|
|
|
@ -13,9 +13,10 @@
|
|||
#ifndef QTR_FREESPACE_LABEL_H
|
||||
#define QTR_FREESPACE_LABEL_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <QString>
|
||||
#include <QTimer>
|
||||
|
||||
#include <QLabel>
|
||||
|
||||
class Session;
|
||||
|
|
|
@ -16,16 +16,16 @@
|
|||
#include <QDialog>
|
||||
#include <QTimer>
|
||||
|
||||
struct QAbstractButton;
|
||||
struct QPlainTextEdit;
|
||||
struct QLineEdit;
|
||||
struct QCheckBox;
|
||||
struct QLabel;
|
||||
struct QPushButton;
|
||||
struct QRadioButton;
|
||||
struct Session;
|
||||
struct QProgressBar;
|
||||
struct QDialogButtonBox;
|
||||
class QAbstractButton;
|
||||
class QPlainTextEdit;
|
||||
class QLineEdit;
|
||||
class QCheckBox;
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
class QRadioButton;
|
||||
class Session;
|
||||
class QProgressBar;
|
||||
class QDialogButtonBox;
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
#include <algorithm> // std::min()
|
||||
|
||||
#include <QApplication>
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
|
|
|
@ -211,7 +211,7 @@ TorrentFilter :: hiddenRowCount( ) const
|
|||
void
|
||||
TorrentFilter :: countTorrentsPerMode (int * setmeCounts) const
|
||||
{
|
||||
std::fill_n (setmeCounts, FilterMode::NUM_MODES, 0);
|
||||
std::fill_n (setmeCounts, static_cast<std::size_t>(FilterMode::NUM_MODES), 0);
|
||||
|
||||
for (int row(0); ; ++row)
|
||||
{
|
||||
|
|
|
@ -29,6 +29,10 @@
|
|||
#include "speed.h"
|
||||
#include "types.h"
|
||||
|
||||
#ifdef ERROR
|
||||
#undef ERROR
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
struct tr_variant;
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef QTR_TORRENT_DELEGATE_H
|
||||
#define QTR_TORRENT_DELEGATE_H
|
||||
#ifndef QTR_TRACKER_DELEGATE_H
|
||||
#define QTR_TRACKER_DELEGATE_H
|
||||
|
||||
#include <QItemDelegate>
|
||||
#include <QSize>
|
||||
|
@ -20,7 +20,7 @@ class QPainter;
|
|||
class QStyleOptionViewItem;
|
||||
class QStyle;
|
||||
class Session;
|
||||
class TrackerInfo;
|
||||
struct TrackerInfo;
|
||||
|
||||
class TrackerDelegate: public QItemDelegate
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue