fix CL warnings in the Qt code. mikedld

This commit is contained in:
Jordan Lee 2013-09-08 18:39:37 +00:00
parent 0e453bb873
commit e0e98cbed5
7 changed files with 24 additions and 15 deletions

View File

@ -17,6 +17,8 @@
#include <QObject>
#include <QIcon>
#include <stdint.h> // int64_t
class Speed;
class Formatter: public QObject

View File

@ -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;

View File

@ -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"
{

View File

@ -10,6 +10,8 @@
* $Id$
*/
#include <algorithm> // std::min()
#include <QApplication>
#include <QCheckBox>
#include <QComboBox>

View File

@ -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)
{

View File

@ -29,6 +29,10 @@
#include "speed.h"
#include "types.h"
#ifdef ERROR
#undef ERROR
#endif
extern "C"
{
struct tr_variant;

View File

@ -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
{